| 1 | /*
|
|---|
| 2 | * Unix SMB/CIFS implementation.
|
|---|
| 3 | * collected prototypes header
|
|---|
| 4 | *
|
|---|
| 5 | * frozen from "make proto" in May 2008
|
|---|
| 6 | *
|
|---|
| 7 | * Copyright (C) Michael Adam 2008
|
|---|
| 8 | *
|
|---|
| 9 | * This program is free software; you can redistribute it and/or modify
|
|---|
| 10 | * it under the terms of the GNU General Public License as published by
|
|---|
| 11 | * the Free Software Foundation; either version 3 of the License, or
|
|---|
| 12 | * (at your option) any later version.
|
|---|
| 13 | *
|
|---|
| 14 | * This program is distributed in the hope that it will be useful,
|
|---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 17 | * GNU General Public License for more details.
|
|---|
| 18 | *
|
|---|
| 19 | * You should have received a copy of the GNU General Public License
|
|---|
| 20 | * along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|---|
| 21 | */
|
|---|
| 22 |
|
|---|
| 23 | #ifndef _SWAT_PROTO_H_
|
|---|
| 24 | #define _SWAT_PROTO_H_
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | /* The following definitions come from web/cgi.c */
|
|---|
| 28 |
|
|---|
| 29 | void cgi_load_variables(void);
|
|---|
| 30 | const char *cgi_variable(const char *name);
|
|---|
| 31 | const char *cgi_variable_nonull(const char *name);
|
|---|
| 32 | bool am_root(void);
|
|---|
| 33 | char *cgi_user_name(void);
|
|---|
| 34 | char *cgi_user_pass(void);
|
|---|
| 35 | char *cgi_nonce(void);
|
|---|
| 36 | void cgi_setup(const char *rootdir, int auth_required);
|
|---|
| 37 | const char *cgi_baseurl(void);
|
|---|
| 38 | const char *cgi_pathinfo(void);
|
|---|
| 39 | const char *cgi_remote_host(void);
|
|---|
| 40 | const char *cgi_remote_addr(void);
|
|---|
| 41 | bool cgi_waspost(void);
|
|---|
| 42 |
|
|---|
| 43 | /* The following definitions come from web/diagnose.c */
|
|---|
| 44 |
|
|---|
| 45 | bool winbindd_running(void);
|
|---|
| 46 | bool nmbd_running(void);
|
|---|
| 47 | bool smbd_running(void);
|
|---|
| 48 |
|
|---|
| 49 | /* The following definitions come from web/neg_lang.c */
|
|---|
| 50 |
|
|---|
| 51 | int web_open(const char *fname, int flags, mode_t mode);
|
|---|
| 52 | void web_set_lang(const char *lang_string);
|
|---|
| 53 |
|
|---|
| 54 | /* The following definitions come from web/startstop.c */
|
|---|
| 55 |
|
|---|
| 56 | void start_smbd(void);
|
|---|
| 57 | void start_nmbd(void);
|
|---|
| 58 | void start_winbindd(void);
|
|---|
| 59 | void stop_smbd(void);
|
|---|
| 60 | void stop_nmbd(void);
|
|---|
| 61 | void stop_winbindd(void);
|
|---|
| 62 | void kill_pid(struct server_id pid);
|
|---|
| 63 |
|
|---|
| 64 | /* The following definitions come from web/statuspage.c */
|
|---|
| 65 |
|
|---|
| 66 | void status_page(void);
|
|---|
| 67 |
|
|---|
| 68 | /* The following definitions come from web/swat.c */
|
|---|
| 69 |
|
|---|
| 70 | const char *lang_msg_rotate(TALLOC_CTX *ctx, const char *msgid);
|
|---|
| 71 | void get_xsrf_token(const char *username, const char *pass,
|
|---|
| 72 | const char *formname, time_t xsrf_time, char token_str[33]);
|
|---|
| 73 | void print_xsrf_token(const char *username, const char *pass,
|
|---|
| 74 | const char *formname);
|
|---|
| 75 | bool verify_xsrf_token(const char *formname);
|
|---|
| 76 |
|
|---|
| 77 | #endif /* _SWAT_PROTO_H_ */
|
|---|