source: TI05-delivery/trunk/components/server/ext/util.h @ 1541

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/components/server/ext/util.h@1541
Revision 1541, 768 bytes checked in by spascoe, 13 years ago (diff)

Major directory structure reorganisation.

The python source tree is now divided into 3 components: common,
server and client. Each component has it's own setup.py.

Do "python setup.py bdist_egg" to create 3 eggs for each component.

Some things in the distribution are now out of sync (e.g. documentation) but
the test cases work (I havn't tried the remote test cases).

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);
29void ndg_debug_sleep(int secs);
30
Note: See TracBrowser for help on using the repository browser.