libndr: basic print stuff as dummy functions
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Mar 2008 09:33:51 +0000 (10:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 15 Sep 2008 12:27:39 +0000 (14:27 +0200)
metze

source4/lib/ndr/config.mk
source4/lib/ndr/libndr.h
source4/lib/ndr/ndr_print.c [new file with mode: 0644]

index 7141917d18fc4855825e91a0f0c7afc00561351a..b966c423f1a809efb293f4ea98b565f396edd2d6 100644 (file)
@@ -11,6 +11,7 @@ OBJ_FILES = \
                ndr_switch.o \
                ndr_push.o \
                ndr_pull.o \
+               ndr_print.o \
                ndr_ptr.o \
                ndr_size.o \
                ndr_static.o \
index 88bc6aae526b3db7d7b8def1ba3287a93282bdd3..5750c2d5ad8a0739acdd72008884bdf44d033336 100644 (file)
@@ -232,15 +232,6 @@ struct ndr_interface_list {
 #define ndr_token_retrieve_cmp_fn(list, key, valp, fn, remove) \
        ndr_token_fetch_ex(list, key, valp, fn, ((remove)?false:true))
 
-#define ndr_print_struct(a,b,c)
-#define ndr_print_union(a,b,c,d)
-#define ndr_print_enum(a,b,c,d,e)
-
-#define ndr_print_bitmap_flag(a,b,c,d,e)
-#define ndr_print_bad_level(a,b,c)
-
-#define ndr_print_function_string(a,b,c,d,e)   NULL
-
 struct dom_sid;
 void ndr_print_dom_sid(struct ndr_print *ndr, const char *name, const struct dom_sid *sid);
 void ndr_print_dom_sid2(struct ndr_print *ndr, const char *name, const struct dom_sid *sid);
diff --git a/source4/lib/ndr/ndr_print.c b/source4/lib/ndr/ndr_print.c
new file mode 100644 (file)
index 0000000..96eb947
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+   NDR library used by pidl bindings
+
+   Copyright (C) Stefan Metzmacher 2008
+
+     ** NOTE! The following LGPL license applies to the ndr
+     ** library. This does NOT imply that all of Samba is released
+     ** under the LGPL
+
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 3 of the License, or (at your option) any later version.
+
+   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/>.
+*/
+
+#include "includes.h" /* TODO: remove this! */
+
+#include "libndr.h"
+
+void ndr_print_bitmap_flag(struct ndr_print *ndr, size_t size, const char *flag_name,
+                          uint32_t flag, uint32_t value)
+{
+       /*TODO*/
+}
+
+void ndr_print_enum(struct ndr_print *print, const char *name, const char *type,
+                   const char *value_string, uint32_t value)
+{
+       /*TODO*/
+}
+
+void ndr_print_struct(struct ndr_print *print, const char *name, const char *type)
+{
+       /*TODO*/
+}
+
+void ndr_print_union(struct ndr_print *print, const char *name,
+                    int32_t level, const char *type)
+{
+       /*TODO*/
+}
+
+void ndr_print_bad_level(struct ndr_print *print, const char *name, uint32_t level)
+{
+       /*TODO*/
+}
+
+void ndr_print_string_helper(struct ndr_print *print, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
+{
+       /*TODO*/
+}
+
+char *ndr_print_function_string(TALLOC_CTX *mem_ctx,
+                               ndr_print_function_t fn, const char *name,
+                               uint32_t flags, const void *ptr)
+{
+       /*TODO*/
+       return NULL;
+}