6 headername=
"_PROTO_H_";
9 print "#ifndef",headername
10 print "#define",headername
12 print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
18 print "#endif /* ",headername
," */"
22 if (FILENAME!=current_file
) {
23 # if (use_ldap_define)
25 # print "#endif /* USE_LDAP */"
26 # use_ldap_define = 0;
29 print "/* The following definitions come from",FILENAME," */"
34 if (match($
0,"[)][ \t]*$")) {
44 # we handle the loadparm.c fns separately
48 printf "bool %s(int );\n", a
[2]
51 /^FN_LOCAL_PARM_BOOL
/ {
53 printf "bool %s(const struct share_params *p );\n", a
[2]
56 /^FN_LOCAL_PARM_INTEGER
/ {
58 printf "int %s(const struct share_params *p );\n", a
[2]
63 printf "const char **%s(int );\n", a
[2]
68 printf "char *%s(int );\n", a
[2]
71 /^FN_LOCAL_PARM_STRING
/ {
73 printf "char *%s(const struct share_params *p );\n", a
[2]
76 /^FN_LOCAL_CONST_STRING
/ {
78 printf "const char *%s(int );\n", a
[2]
83 printf "int %s(int );\n", a
[2]
88 printf "char %s(const struct share_params *p );\n", a
[2]
93 printf "bool %s(void);\n", a
[2]
98 printf "const char **%s(void);\n", a
[2]
101 /^FN_GLOBAL_STRING
/ {
103 printf "char *%s(void);\n", a
[2]
106 /^FN_GLOBAL_CONST_STRING
/ {
108 printf "const char *%s(void);\n", a
[2]
113 printf "int %s(void);\n", a
[2]
116 /^static
|^extern
/ || !
/^
[a
-zA
-Z\_
]/ || /[;]/ {
121 # We have to split up the start
122 # matching as we now have so many start
123 # types that it can cause some versions
124 # of nawk/awk to choke and fail on
125 # the full match. JRA.
130 if( $
0 ~
/^const
|^connection_struct
|^pipes_struct
|^smb_np_struct
|^file_fd_struct
|^files_struct
|^connection_struct
|^uid_t
|^gid_t
|^unsigned
|^mode_t
|^DIR
|^user
|^int
|^pid_t
|^ino_t
|^off_t
|^double
/ ) {
134 if( $
0 ~
/^vuser_key
|^UNISTR2
|^LOCAL_GRP
|^DOMAIN_GRP
|^SMB_STRUCT_DIRENT
|^SEC_ACL
|^SEC_DESC
|^SEC_DESC_BUF
|^DOM_SID
|^RPC_HND_NODE
|^BYTE
/ ) {
138 if( $
0 ~
/^ADS_STRUCT
|^ADS_STATUS
|^DATA_BLOB
|^ASN1_DATA
|^TDB_CONTEXT
|^TDB_DATA
|^smb_ucs2_t
|^TALLOC_CTX
|^hash_element
|^NT_DEVICEMODE
|^enum.
*\
(|^NT_USER_TOKEN
|^SAM_ACCOUNT
|^NTTIME
/ ) {
142 if( $
0 ~
/^smb_iconv_t
|^long
|^char
|^uint
|^NTSTATUS
|^WERROR
|^CLI_POLICY_HND
|^struct
|^bool
|^void
|^time
|^smb_shm_offset_t
|^shm_offset_t
|^FILE
|^XFILE
|^SMB_OFF_T
|^size_t
|^ssize_t
|^SMB_BIG_UINT
|^SMB_BIG_INT
/ ) {
146 if( $
0 ~
/^SAM_ACCT_INFO_NODE
|^SMB_ACL_T
|^ADS_MODLIST
|^PyObject
|^SORTED_TREE
|^REGISTRY_HOOK
|^REGISTRY_VALUE
|^REGVAL_CTR
|^DEVICEMODE
|^PAC_DATA
|^NET_USER_INFO_3
|^smb_event_id_t
/ ) {
150 if( $
0 ~
/^WINBINDD_PW
|^WINBINDD_GR
|^NT_PRINTER_INFO_LEVEL_2
|^LOGIN_CACHE
|^krb5_error_code
|^LDAP
|^u32
|^LUID_ATTR
|^NSS_STATUS
/ ) {
154 if( $
0 ~
/^NODE_STATUS_STRUCT
|^SMB_STRUCT_DIR
|^ELOG_TDB
|^codepoint_t
|^_PUBLIC_
|^wbcErr
/ ) {