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

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

Updated python code to reflect the renaming of the delivery package to pybbftp.
Some C tidying to reduce compiler warnings.

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#include <bbftpd.h>
13#include <netinet/in.h>
14
15/* The logmessage size limit is hard coded into the bbFTP source.  I define a macro here to avoid
16 *  buffer overflows.
17 */
18#define NDG_MAX_LOGMESSAGE 1024
19#define NDG_MESSAGE_LEN 256
20
21#define NDG_STR(s) #s
22#define NDG_XSTR(s) NDG_STR(s)
23#define NDG_HANDSHAKE ("NDG-Delivery-server " NDG_XSTR(NDG_DELIVERY_VERSION))
24
25
26#ifdef NDG_PYTHON_EMBED
27
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);
31
32int ndg_message_send(char *buffer, int length, char *logmessage);
33int ndg_message_recv(char **buffer, int *length, char *logmessage);
34
35int ndg_auth(char *logmessage);
36char *ndg_getusername(char *logmessage);
37
38int ndg_authz_control(int msgcode, int transferoption, char *path, char *logmessage);
39int ndg_authz_retr(char *path, char *logmessage);
40int ndg_authz_store(char *path, char *logmessage);
41
42
43#endif // NDG_PYTHON_EMBED
Note: See TracBrowser for help on using the repository browser.