source: TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/ndg.h @ 1117

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/ndg.h@1117
Revision 1117, 1.0 KB checked in by spascoe, 13 years ago (diff)

The server-side Authz extensions and python bindings have been taken out of
bbftp source files and now exist in ndg.c and ndg.h.

API documentation can now be generated with doxygen. Just type "doxygen"
in the trunk directory.

Line 
1/**
2 * NDG python embedded bbftp daemon module.
3 *
4 * @author Stephen Pascoe
5 *
6 * Copyright (C) 2006 CCLRC & NERC
7 *
8 * This software may be distributed under the terms of the Q Public Licence, version 1.0 or later.
9 *
10 */
11
12
13/* The logmessage size limit is hard coded into the bbFTP source.  I define a macro here to avoid
14 *  buffer overflows.
15 */
16#define NDG_MAX_LOGMESSAGE 1024
17#define NDG_MESSAGE_LEN 256
18
19#define NDG_STR(s) #s
20#define NDG_XSTR(s) NDG_STR(s)
21#define NDG_HANDSHAKE ("NDG-Delivery-server " NDG_XSTR(NDG_DELIVERY_VERSION))
22
23
24#ifdef NDG_PYTHON_EMBED
25#include <Python.h>
26
27int bbftpd_private_auth_callback(char *logmessage);
28int bbftpd_private_authz_control(int msgcode, int transferoption, char *path, char *logmessage);
29int bbftpd_private_authz_retr(char *path, char *logmessage);
30int bbftpd_private_authz_store(char *path, char *logmessage);
31int ndg_message_send(char *buffer, int length, char *logmessage);
32int ndg_message_recv(char **buffer, int *length, char *logmessage);
33
34
35#endif // NDG_PYTHON_EMBED
Note: See TracBrowser for help on using the repository browser.