00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _OBEX_SERVER_INTERNALS_H_
00023 #define _OBEX_SERVER_INTERNALS_H_
00024
00025 #include "obex_bluetooth.h"
00026 #include <openobex/obex.h>
00027
00028 #define STREAM_CHUNK 4096
00029
00030 typedef struct SmlTransportObexServerEnv {
00031 SmlTransportConnectionType type;
00032 SmlTransport *tsp;
00033 char *path;
00034 uint16_t port;
00035 #ifdef ENABLE_BLUETOOTH
00036 bdaddr_t *bdaddr;
00037 #endif
00038 char *irda_service;
00039
00040 obex_t *handle;
00041
00042 GSource *source;
00043 GSourceFuncs *functions;
00044
00045 uint32_t lastConId;
00046 } SmlTransportObexServerEnv;
00047
00048 typedef struct SmlLinkObexServerEnv {
00049 SmlLink *link;
00050 SmlTransportObexServerEnv *env;
00051 uint32_t conid;
00052 obex_t *handle;
00053 uint8_t *stream_chunk;
00054 SmlBool destroy;
00055 SmlBool disconnect;
00056 GSource *source;
00057 SmlError *error;
00058 SmlTransportData *send_data;
00059 } SmlLinkObexServerEnv;
00060
00061 SmlBool smlTransportObexServerNew(SmlTransport *tsp, SmlError **error);
00062
00063 #endif //_OBEX_SERVER_INTERNALS_H_