generate_param: teach missing types cmdlist, bytes, octal, ustring.
authorMichael Adam <obnox@samba.org>
Thu, 23 Jul 2015 16:01:40 +0000 (18:01 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2015 23:55:32 +0000 (01:55 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
script/generate_param.py

index 494e23972a2dee8a968722886d08b40d6fcb9d6a..b71d3aac35d1b4eedbce12863e23365f6bf72202 100644 (file)
@@ -97,6 +97,10 @@ param_type_dict = {
                     "enum"         : "_INTEGER",
                     "char"         : "_CHAR",
                     "boolean-auto" : "_INTEGER",
                     "enum"         : "_INTEGER",
                     "char"         : "_CHAR",
                     "boolean-auto" : "_INTEGER",
+                    "cmdlist"      : "_LIST",
+                    "bytes"        : "_INTEGER",
+                    "octal"        : "_INTEGER",
+                    "ustring"      : "_STRING",
                   }
 
 def generate_functions(path_in, path_out):
                   }
 
 def generate_functions(path_in, path_out):
@@ -137,6 +141,10 @@ mapping = {
             'list'         : 'const char **',
             'enum'         : 'int ',
             'boolean-auto' : 'int ',
             'list'         : 'const char **',
             'enum'         : 'int ',
             'boolean-auto' : 'int ',
+            'cmdlist'      : 'const char **',
+            'bytes'        : 'int ',
+            'octal'        : 'int ',
+            'ustring'      : 'char *',
           }
 
 def make_s3_param_proto(path_in, path_out):
           }
 
 def make_s3_param_proto(path_in, path_out):