swat: freeze swat_proto.h from "make proto"
authorMichael Adam <obnox@samba.org>
Sun, 18 May 2008 21:16:38 +0000 (23:16 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 18 May 2008 21:16:38 +0000 (23:16 +0200)
Michael
(This used to be commit 372c58cc220efc01af4b90b82b75191296a62e81)

.gitignore
source3/Makefile.in
source3/web/swat_proto.h [new file with mode: 0644]

index dc2b9c9cb67ab1963c2751022eda03ddb455982e..2dfa78aa573ef130367d0d7f958b84396f3c4ed1 100644 (file)
@@ -26,7 +26,6 @@ source/script/uninstallbin.sh
 source/smbd/build_options.c
 source/utils/net_proto.h
 source/utils/ntlm_auth_proto.h
-source/web/swat_proto.h
 source/tags
 source/utils/passwd_proto.h
 source/include/includes.h.gch
index 3f594918065213b3e39f34408ccf5865a03817a8..3eaba942d24ba47feb4a43686bd8825caddd744b 100644 (file)
@@ -2300,7 +2300,6 @@ clean: delheaders
 # removed by "make clean" this will always be run when you do anything
 # afterwards.
 proto_exists: include/build_env.h \
-       web/swat_proto.h \
        libnet/libnet_proto.h \
        client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
        @touch proto_exists
@@ -2308,7 +2307,6 @@ proto_exists: include/build_env.h \
 delheaders:
        @echo Removing prototype headers
        @rm -f include/build_env.h \
-               web/swat_proto.h \
                client/client_proto.h utils/net_proto.h \
                smbd/build_options.c utils/ntlm_auth_proto.h \
                utils/passwd_proto.h libnet/libnet_proto.h
@@ -2320,11 +2318,6 @@ include/build_env.h: script/build_env.sh
        @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
          > $(builddir)/include/build_env.h
 
-web/swat_proto.h:
-       @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
-         -h _SWAT_PROTO_H_ $(builddir)/web/swat_proto.h \
-         $(SWAT_OBJ1)
-
 client/client_proto.h:
        @cd $(srcdir) && $(SHELL) $(MKPROTO_SH) $(AWK) \
          -h _CLIENT_PROTO_H_ $(builddir)/client/client_proto.h \
@@ -2357,7 +2350,6 @@ headers:
        $(MAKE) delheaders; \
        $(MAKE) smbd/build_options.c; \
        $(MAKE) include/build_env.h; \
-       $(MAKE) web/swat_proto.h; \
        $(MAKE) client/client_proto.h; \
        $(MAKE) utils/ntlm_auth_proto.h; \
        $(MAKE) utils/net_proto.h; \
diff --git a/source3/web/swat_proto.h b/source3/web/swat_proto.h
new file mode 100644 (file)
index 0000000..0f84e4f
--- /dev/null
@@ -0,0 +1,70 @@
+/*
+ * Unix SMB/CIFS implementation.
+ * collected prototypes header
+ *
+ * frozen from "make proto" in May 2008
+ *
+ * Copyright (C) Michael Adam 2008
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _SWAT_PROTO_H_
+#define _SWAT_PROTO_H_
+
+
+/* The following definitions come from web/cgi.c  */
+
+void cgi_load_variables(void);
+const char *cgi_variable(const char *name);
+const char *cgi_variable_nonull(const char *name);
+bool am_root(void);
+char *cgi_user_name(void);
+void cgi_setup(const char *rootdir, int auth_required);
+const char *cgi_baseurl(void);
+const char *cgi_pathinfo(void);
+const char *cgi_remote_host(void);
+const char *cgi_remote_addr(void);
+bool cgi_waspost(void);
+
+/* The following definitions come from web/diagnose.c  */
+
+bool winbindd_running(void);
+bool nmbd_running(void);
+bool smbd_running(void);
+
+/* The following definitions come from web/neg_lang.c  */
+
+int web_open(const char *fname, int flags, mode_t mode);
+void web_set_lang(const char *lang_string);
+
+/* The following definitions come from web/startstop.c  */
+
+void start_smbd(void);
+void start_nmbd(void);
+void start_winbindd(void);
+void stop_smbd(void);
+void stop_nmbd(void);
+void stop_winbindd(void);
+void kill_pid(struct server_id pid);
+
+/* The following definitions come from web/statuspage.c  */
+
+void status_page(void);
+
+/* The following definitions come from web/swat.c  */
+
+const char *lang_msg_rotate(TALLOC_CTX *ctx, const char *msgid);
+
+#endif /*  _SWAT_PROTO_H_  */