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

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

Renamed some internal functions binding python to the server.

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_authz_control(int msgcode, int transferoption, char *path, char *logmessage);
28int bbftpd_private_authz_retr(char *path, char *logmessage);
29int bbftpd_private_authz_store(char *path, char *logmessage);
30
31int ndg_message_send(char *buffer, int length, char *logmessage);
32int ndg_message_recv(char **buffer, int *length, char *logmessage);
33
34int ndg_auth(char *logmessage);
35char *ndg_getusername(char *logmessage);
36
37#endif // NDG_PYTHON_EMBED
Note: See TracBrowser for help on using the repository browser.