1 /*- 2 *********************************************************************** 3 * 4 * $Id: pad-join.h,v 1.10 2012/01/07 07:56:14 mavrik Exp $ 5 * 6 *********************************************************************** 7 * 8 * Copyright 2002-2012 The WebJob Project, All Rights Reserved. 9 * 10 *********************************************************************** 11 */ 12 #ifndef _PAD_JOIN_H_INCLUDED 13 #define _PAD_JOIN_H_INCLUDED 14 15 16 /*- 17 *********************************************************************** 18 * 19 * Defines 20 * 21 *********************************************************************** 22 */ 23 #define XER -1 24 #define XER_OK 0 25 #define XER_Usage 1 26 #define XER_BootStrap 2 27 #define XER_ProcessArguments 3 28 #define XER_WorkHorse 4 29 30 /*- 31 *********************************************************************** 32 * 33 * Typedefs 34 * 35 *********************************************************************** 36 */ 37 typedef struct _PAD_JOIN_PROPERTIES 38 { 39 char *pcDelimiter; 40 char *pcPayload; 41 char *pcPaDGuts; 42 } PAD_JOIN_PROPERTIES; 43 44 /*- 45 *********************************************************************** 46 * 47 * Function Prototypes 48 * 49 *********************************************************************** 50 */ 51 int main(int iArgumentCount, char *ppcArgumentVector[]); 52 int PaDBootStrap(char *pcError); 53 int PaDWorkHorse(PAD_JOIN_PROPERTIES *psProperties, char *pcError); 54 int PaDProcessArguments(int iArgumentCount, char *ppcArgumentVector[], PAD_JOIN_PROPERTIES *psProperties, char *pcError); 55 void PaDShutdown(int iError); 56 void PaDUsage(char *pcProgram); 57 58 #endif /* !_PAD_JOIN_H_INCLUDED */ 59