summaryrefslogtreecommitdiff
path: root/src/helper.h
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-02-17 15:57:56 -0500
committerPaul Moore <paul@paul-moore.com>2017-02-17 15:57:56 -0500
commit1d055ac3fec5929f47ea6a3148c8f64815cbb220 (patch)
treeec53fefed3c305517e424095483c6f6f7b45fd4f /src/helper.h
parent06b825925dfe19030b877eb8f48ac96279d8fc50 (diff)
downloadlibseccomp-1d055ac3fec5929f47ea6a3148c8f64815cbb220.tar.gz
all: introduce a zmalloc() helper function
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/helper.h')
-rw-r--r--src/helper.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/helper.h b/src/helper.h
new file mode 100644
index 0000000..2d610ce
--- /dev/null
+++ b/src/helper.h
@@ -0,0 +1,27 @@
+/**
+ * Helper functions for libseccomp
+ *
+ * Copyright (c) 2017 Red Hat <pmoore@redhat.com>
+ * Author: Paul Moore <paul@paul-moore.com>
+ */
+
+/*
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of version 2.1 of the GNU Lesser General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, see <http://www.gnu.org/licenses>.
+ */
+
+#ifndef _FILTER_HELPER_H
+#define _FILTER_HELPER_H
+
+void *zmalloc(size_t size);
+
+#endif