current version
[opsoft_test.git] / gclib2 / include / Proto.h
blob375cb2172031e07b467aed8e9ec835aad6d04cf7
1 /*
2 * (c) Oleg Puchinin 2006-2008
3 * graycardinalster@gmail.com
5 */
7 #ifndef DEFINE_PROTO_H
8 #define DEFINE_PROTO_H
10 #ifndef __export
11 #define __export
12 #endif
14 #ifdef __cplusplus
15 #include "earray.h"
16 #include <sys/poll.h>
17 #include "djob_t.h"
19 #ifdef __linux
20 __export char * dcp (char * S) ;
21 __export void Dzero (void * ptr) ;
22 __export int Dsched_yield () ;
23 int Dclone (int (*fn)(void *), void * param) ;
24 #endif
26 __export int Dpoll_add (EArray * d_array, int fd, short events) ;
27 __export int Dpoll_coallesce (EArray * d, struct pollfd ** p) ;
28 __export int Dsplit (char * STR, char *ch, DList * to_list) ;
29 __export int Dsplit (char * buf, size_t buflen, char *str, EList * to_list) ;
31 #undef __export
32 #define __export extern "C"
34 #endif
36 __export uchar_t * base64_code (unsigned char * S, int SIZE) ;
37 __export uchar_t * base64_decode (unsigned char * S, int SIZE) ;
38 __export int dexec_wflags (int flags) ;
39 __export int dexec_rflags (int flags) ;
40 //__export int Dexec_op (struct __dexec_t *buf, int count, struct __djob_t *ctx) ;
41 __export void Dexec_init (struct __djob_t * ctx) ;
42 //__export int Dexec (int ops, struct __dexec_t *other_buf, int count, char *cmd, struct __djob_t *ctx) ;
43 __export __djob_t * Dexec (unsigned int opts, char * cmd);
45 __export int Dexec_done (struct __djob_t *ctx) ;
47 __export void Dtimer () ;
48 __export struct timeval *the_time () ;
49 __export void print_the_time (FILE * file_my) ;
50 __export int Dterm_one_kick (int fd) ;
51 __export char *Dversion () ;
52 __export char * Dtimestr (char * buf, int max) ;
54 #include <gc_strings.h>
55 #include <gc_io.h>
56 #include <ipc.h>
58 #endif
60 #undef __export
61 #define __export