s4:mkproto: Add NET_API_STATUS return type.
authorAndrew Kroeger <andrew@id10ts.net>
Mon, 1 Jun 2009 09:36:50 +0000 (04:36 -0500)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 1 Jun 2009 09:55:34 +0000 (19:55 +1000)
The recently added LIBNETAPI torture tests use NET_API_STATUS as a return type
for some functions.  The torture/libnetapi/proto.h private header that was being
generated by mkproto.pl did not include a prototype for the test_netuseradd()
function, as it did not know how to handle the NET_API_STATUS return type.

source4/script/mkproto.pl

index e1b790d41da216ce04cc8a98bec094607bed2c05..59307881c4390d3616ab786420586356212e3d0c 100755 (executable)
@@ -206,7 +206,7 @@ sub process_file($$$)
                                  void|bool|int|struct|char|const|\w+_[tT]\s|uint|unsigned|long|NTSTATUS|
                                  ADS_STATUS|enum\s.*\(|DATA_BLOB|WERROR|XFILE|FILE|DIR|
                              double|TDB_CONTEXT|TDB_DATA|TALLOC_CTX|NTTIME|FN_|init_module|
-                             GtkWidget|GType|smb_ucs2_t|krb5_error_code)
+                             GtkWidget|GType|smb_ucs2_t|krb5_error_code|NET_API_STATUS)
                              /xo);
 
                next if ($line =~ /^int\s*main/);