source='ntp_signd.c',
subsystem='service',
init_function='server_service_ntp_signd_init',
- deps='samdb NDR_NTP_SIGND LIBTSOCKET LIBSAMBA_TSOCKET'
+ deps='samdb NDR_NTP_SIGND LIBTSOCKET LIBSAMBA_TSOCKET',
+ internal_module=False,
)
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef __WEB_SERVER_H__
+#define __WEB_SERVER_H__
+
#include "smbd/process_model.h"
struct websrv_context;
struct session_data *session;
};
+bool wsgi_initialize(struct web_server_data *wdata);
+void http_error(struct websrv_context *web, const char *status, const char *info);
+void websrv_output_headers(struct websrv_context *web, const char *status, struct http_header *headers);
+void websrv_output(struct websrv_context *web, void *data, size_t length);
+NTSTATUS http_parse_header(struct websrv_context *web, const char *line);
-#include "web_server/proto.h"
-
+#endif /* __WEB_SERVER_H__ */
bld.SAMBA_MODULE('WEB',
source='web_server.c',
- autoproto='proto.h',
- autoproto_extra_source='wsgi.c',
subsystem='service',
init_function='server_service_web_init',
deps='LIBTLS process_model LIBPYTHON WEB_WSGI',
pyembed=True,
+ internal_module=False,
)
Implementation of the WSGI interface described in PEP0333
(http://www.python.org/dev/peps/pep-0333)
-
+
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/>.
*/
ret = PyString_FromStringAndSize((char *)self->web->input.partial.data+self->offset, size);
self->offset += size;
-
+
return ret;
}