File: smssend.h.in

package info (click to toggle)
smssend 2.9-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,104 kB
  • ctags: 367
  • sloc: sh: 7,792; ansic: 5,538; perl: 96; makefile: 70
file content (82 lines) | stat: -rw-r--r-- 1,537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef __SMSSEND_H__
#define __SMSSEND_H__

#include <skyutils.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
//#include <unistd.h>

#define SMSSEND_VERSION "@VERSION@"
#define SMSSEND_URL_SCRIPTS "http://zekiller.skytech.org/fichiers/smssend/"

#ifdef _WIN32
#define DATADIR "C:\\Program Files\\SkyTech\\"
#define SMSSEND_SHAREPATH DATADIR "SmsSend"
#else
#define DATADIR "@prefix@/share"
#define SMSSEND_SHAREPATH DATADIR "/smssend"
#endif

#define RUNTIME_URL    0
#define RUNTIME_PARAMS 1
#define RUNTIME_HOST   2
#define RUNTIME_DATA   3

typedef struct
{
  SU_PList Search; /* SMS_PSearch */
  SU_PList NoAdd; /* char * */
} SMS_TActUser, *SMS_PActUser;

typedef struct
{
  char *String;
  char *Msg;
  int Group;
  int Error;
} SMS_TSearch, *SMS_PSearch;

typedef struct
{
  char *Name;
  char *Value;
  char *Help;
  char *Alias;
  int Hidden;
  int Size;
  int Convert;
} SMS_TParam, *SMS_PParam;

typedef struct
{
  char *URL;
  char *Params;
  char *Host;
  char *Data;
} SMS_TRunTime, *SMS_PRunTime;

typedef struct
{
  SU_PCookie Cookie;
  int Phase;
} SMS_TCookie, *SMS_PCookie;

typedef struct
{
#ifndef __unix__
  char *Path;
#endif
  int NbParams;
  SMS_TParam *Params;
  SU_PList Act;     /* SU_PHTTPActions */
  SU_PList RunTime; /* SMS_PRunTime */
  SU_PList Cookies; /* SMS_PCookie */
} SMS_TProvider, *SMS_PProvider;

void GetHostFromURL(const char *URL,char Host[],int Length,bool proxy,char URL_OUT[],int *PortConnect,const char OtherHost[]);

#endif