-
Notifications
You must be signed in to change notification settings - Fork 2
/
multiplatform_struct.h
66 lines (50 loc) · 2.29 KB
/
multiplatform_struct.h
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
// Bahasa Anak Indonesia untuk Komputer - BAIK
// Copyright Haris Hasanudin - 2005 - 2011
//
// Kupersembahkan untuk istriku tercinta Masako, anakku tersayang Takumi
// dan Tomoki serta seluruh putra putri Indonesia
// ..............................................................
/* ************************************************* */
#ifndef WINDOWS
/* ************************************************* */
int ux_initSocket(const char *transport);
int ux_closeSocket(int s);
int ux_connectSocket(int s, char *szServer, const char *portservice);
int ux_ikatSocket(int s, const char *portservice);
int ux_terimaSocket(int s);
char *ux_bacaSocket( int sock );
int ux_tulisSocket( int sock, char data[MAX_STRING_LEN] );
int ux_sendMail(char szServer[64], char szPort[8],
char mailfrom[128], char mailto[1024], char subject[256], char body[4096]);
int unixRegexBuf(const char *string, char *pattern);
/* ************************************************* */
#else
/* ************************************************* */
int winRegexBuf(char sbuf[MAX_STRING_LEN*4], char *regex);
SOCKET initSocket(const char *transport);
int closeSocket(SOCKET s);
int connectSocket(SOCKET s, char szServer[MAX_STRING_LEN], const char *portservice);
SOCKET ikatSocket(SOCKET s, const char *portservice);
SOCKET terimaSocket(SOCKET s);
char *bacaSocket( SOCKET sock );
int tulisSocket( SOCKET sock, char data[MAX_STRING_LEN] );
int playWave(char filename[MAX_STRING_LEN]);
int showDialog(char msg[MAX_STRING_LEN], char title[MAX_STRING_LEN]);
void win_openCD();
void win_closeCD();
void win_playCDaudio();
void win_stopCDaudio();
void win_pauseCDaudio();
void win_resumeCDaudio();
void win_playAVIMidi(char filename[256]);
void win_stopAVIMidi(char filename[256]);
void win_pauseAVIMidi(char filename[256]);
void win_resumeAVIMidi(char filename[256]);
void InitSer(DCB dcb, HANDLE* hComm, int baud, char COM[8]);
int writeSerialCom(char COM[8], char input[1024], int baudrate);
char *readSerialCom(char COM[8], int baudrate);
int win_sendMail(char szServer[64], char szPort[8],
char mailfrom[128], char mailto[1024], char subject[256], char body[4096]);
/* ************************************************* */
#endif
/* ************************************************* */