00001 #ifndef __CHM_CLIENT_DLL_H__
00002 #define __CHM_CLIENT_DLL_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <CHM/CHMminimumInclude.h>
00024
00025 #ifndef __CHM_CLIENT_HANDLE_H__
00026 #define __CHM_CLIENT_HANDLE_H__
00027 typedef void* CHMclientHandle;
00028 #endif
00029
00030
00031 CHM_DLL_FUNC(CHMclientCreate)
00032 (
00033 CHMclientHandle* pResult
00034 );
00035
00036 CHM_DLL_FUNC(CHMclientAddRef)
00037 (
00038 CHMclientHandle Handle
00039 );
00040
00041 CHM_DLL_FUNC(CHMclientRelease)
00042 (
00043 CHMclientHandle Handle
00044 );
00045
00046 CHM_DLL_FUNC(CHMclientAddListener)
00047 (
00048 CHMclientHandle Handle,
00049 void* pListener
00050 );
00051
00052 CHM_DLL_FUNC(CHMclientRemoveListener)
00053 (
00054 CHMclientHandle Handle,
00055 void* pListener
00056 );
00057
00058 CHM_DLL_FUNC(CHMclientGetHeaderBlock)
00059 (
00060 CHMclientHandle Handle,
00061 const char** pResult
00062 );
00063
00064 CHM_DLL_FUNC(CHMclientSetHeaderBlock)
00065 (
00066 CHMclientHandle Handle,
00067 const char* Value
00068 );
00069
00070 CHM_DLL_FUNC(CHMclientGetTrailerBlock)
00071 (
00072 CHMclientHandle Handle,
00073 const char** pResult
00074 );
00075
00076 CHM_DLL_FUNC(CHMclientSetTrailerBlock)
00077 (
00078 CHMclientHandle Handle,
00079 const char* Value
00080 );
00081
00082 CHM_DLL_FUNC(CHMclientGetIsConnected)
00083 (
00084 CHMclientHandle Handle,
00085 CHMboolean* pResult
00086 );
00087
00088 CHM_DLL_FUNC(CHMclientStopMessageLoop)
00089 (
00090 CHMclientHandle Handle
00091 );
00092
00093 CHM_DLL_FUNC(CHMclientRunMessageLoop)
00094 (
00095 );
00096
00097 CHM_DLL_FUNC(CHMclientMakePrintable)
00098 (
00099 CHMclientHandle Handle,
00100 const char* InputString,
00101 const char* NewLine,
00102 CHMint32 MaximumLength,
00103 const char** pResult
00104 );
00105
00106 CHM_DLL_FUNC(CHMclientConnect)
00107 (
00108 CHMclientHandle Handle,
00109 const char* Host,
00110 CHMint32 Port
00111 );
00112
00113 CHM_DLL_FUNC(CHMclientClose)
00114 (
00115 CHMclientHandle Handle
00116 );
00117
00118 CHM_DLL_FUNC(CHMclientHardClose)
00119 (
00120 CHMclientHandle Handle
00121 );
00122
00123 CHM_DLL_FUNC(CHMclientSendMessage)
00124 (
00125 CHMclientHandle Handle,
00126 const char* Message
00127 );
00128
00129 typedef CHMresult (CHM_STD_CALL* CHMclientConnectCallback)
00130 (
00131 void* pClientInstance
00132 );
00133
00134 CHM_DLL_FUNC(CHMclientSetConnectCallback)
00135 (
00136 CHMclientConnectCallback Callback
00137 );
00138
00139 typedef CHMresult (CHM_STD_CALL* CHMclientClosedCallback)
00140 (
00141 void* pClientInstance
00142 );
00143
00144 CHM_DLL_FUNC(CHMclientSetClosedCallback)
00145 (
00146 CHMclientClosedCallback Callback
00147 );
00148
00149 typedef CHMresult (CHM_STD_CALL* CHMclientMessageCallback)
00150 (
00151 void* pClientInstance,
00152 const char* Message
00153 );
00154
00155 CHM_DLL_FUNC(CHMclientSetMessageCallback)
00156 (
00157 CHMclientMessageCallback Callback
00158 );
00159
00160 typedef CHMresult (CHM_STD_CALL* CHMclientIgnoredDataCallback)
00161 (
00162 void* pClientInstance,
00163 const char* Data
00164 );
00165
00166 CHM_DLL_FUNC(CHMclientSetIgnoredDataCallback)
00167 (
00168 CHMclientIgnoredDataCallback Callback
00169 );
00170
00171 typedef CHMresult (CHM_STD_CALL* CHMclientErrorCallback)
00172 (
00173 void* pClientInstance,
00174 const char* Description,
00175 CHMint32 Code
00176 );
00177
00178 CHM_DLL_FUNC(CHMclientSetErrorCallback)
00179 (
00180 CHMclientErrorCallback Callback
00181 );
00182 #endif // end of defensive include