Blame tests/util.h

Packit 56e23f
/**
Packit 56e23f
 * Seccomp Library utility code for tests
Packit 56e23f
 *
Packit 56e23f
 * Copyright IBM Corp. 2012
Packit 56e23f
 * Author: Corey Bryant <coreyb@linux.vnet.ibm.com>
Packit 56e23f
 */
Packit 56e23f
Packit 56e23f
/*
Packit 56e23f
 * This library is free software; you can redistribute it and/or modify it
Packit 56e23f
 * under the terms of version 2.1 of the GNU Lesser General Public License as
Packit 56e23f
 * published by the Free Software Foundation.
Packit 56e23f
 *
Packit 56e23f
 * This library is distributed in the hope that it will be useful, but WITHOUT
Packit 56e23f
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit 56e23f
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
Packit 56e23f
 * for more details.
Packit 56e23f
 *
Packit 56e23f
 * You should have received a copy of the GNU Lesser General Public License
Packit 56e23f
 * along with this library; if not, see <http://www.gnu.org/licenses>.
Packit 56e23f
 */
Packit 56e23f
Packit 56e23f
#ifndef _UTIL_TEST_H
Packit 56e23f
#define _UTIL_TEST_H
Packit 56e23f
Packit 56e23f
struct util_options {
Packit 56e23f
	int bpf_flg;
Packit 56e23f
};
Packit 56e23f
Packit 56e23f
int util_getopt(int argc, char *argv[], struct util_options *opts);
Packit 56e23f
Packit 56e23f
int util_filter_output(const struct util_options *opts,
Packit 56e23f
		       const scmp_filter_ctx ctx);
Packit 56e23f
Packit 56e23f
int util_trap_install(void);
Packit 56e23f
Packit 56e23f
int util_action_parse(const char *action);
Packit 56e23f
Packit 56e23f
int util_file_write(const char *path);
Packit 56e23f
Packit 56e23f
#endif