source: TI05-delivery/trunk/src/python_ext/util.h @ 1289

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/src/python_ext/util.h@1289
Revision 1289, 736 bytes 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#define NDG_MAX_LOGMESSAGE 1024
13
14#define TRUE 1
15#define FALSE 0
16
17struct ndg_argv {
18  int argc;         /// Total number of arguments.
19  char **argv;     /// Argument array.
20  int next;         /// index of next empty (and unallocated) argument.
21};
22
23int ndg_argv_init(struct ndg_argv *argv_s, int argc);
24int ndg_argv_free(struct ndg_argv *argv_s);
25void ndg_argv_clear(struct ndg_argv *argv_s);
26int ndg_argv_add(struct ndg_argv *argv_s, char *arg);
27
28void ndg_pyerr_to_logmessage(char *logmessage, char *prefix);
29
Note: See TracBrowser for help on using the repository browser.