summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-03 17:05:26 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-03 17:05:26 +0000
commit5c486a24e50ef731b8f970060ab10e928cd0e7cd (patch)
tree81f8de7fc40548ecc5978c7d6937d78ebc409ec3
parent07d2fd5aa2891d94bcb97db89178a4d536599d14 (diff)
add a file to hold the validation routines
-rw-r--r--dbus/dbus-marshal-basic.h6
-rw-r--r--dbus/dbus-marshal-validate.c46
-rw-r--r--dbus/dbus-marshal-validate.h35
3 files changed, 84 insertions, 3 deletions
diff --git a/dbus/dbus-marshal-basic.h b/dbus/dbus-marshal-basic.h
index bf75cbef..72ae2834 100644
--- a/dbus/dbus-marshal-basic.h
+++ b/dbus/dbus-marshal-basic.h
@@ -22,8 +22,8 @@
*
*/
-#ifndef DBUS_MARSHAL_H
-#define DBUS_MARSHAL_H
+#ifndef DBUS_MARSHAL_BASIC_H
+#define DBUS_MARSHAL_BASIC_H
#include <config.h>
#include <dbus/dbus-protocol.h>
@@ -320,4 +320,4 @@ dbus_bool_t _dbus_type_is_fixed (int typecode);
-#endif /* DBUS_MARSHAL_H */
+#endif /* DBUS_MARSHAL_BASIC_H */
diff --git a/dbus/dbus-marshal-validate.c b/dbus/dbus-marshal-validate.c
new file mode 100644
index 00000000..97041189
--- /dev/null
+++ b/dbus/dbus-marshal-validate.c
@@ -0,0 +1,46 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
+/* dbus-marshal-validate.c Validation routines for marshaled data
+ *
+ * Copyright (C) 2005 Red Hat, Inc.
+ *
+ * Licensed under the Academic Free License version 2.1
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#include "dbus-internals.h"
+#include "dbus-marshal-validate.h"
+
+/**
+ * @addtogroup DBusMarshal
+ *
+ * @{
+ */
+
+/** @} */
+
+#ifdef DBUS_BUILD_TESTS
+#include "dbus-test.h"
+#include <stdio.h>
+
+dbus_bool_t
+_dbus_marshal_validate_test (void)
+{
+
+ return TRUE;
+}
+
+#endif /* DBUS_BUILD_TESTS */
diff --git a/dbus/dbus-marshal-validate.h b/dbus/dbus-marshal-validate.h
new file mode 100644
index 00000000..86cbf7ea
--- /dev/null
+++ b/dbus/dbus-marshal-validate.h
@@ -0,0 +1,35 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
+/* dbus-marshal-validate.h Validation routines for marshaled data
+ *
+ * Copyright (C) 2005 Red Hat, Inc.
+ *
+ * Licensed under the Academic Free License version 2.1
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#ifndef DBUS_MARSHAL_VALIDATE_H
+#define DBUS_MARSHAL_VALIDATE_H
+
+#include <config.h>
+#include <dbus/dbus-marshal-basic.h>
+
+#ifndef PACKAGE
+#error "config.h not included here"
+#endif
+
+
+#endif /* DBUS_MARSHAL_VALIDATE_H */