gxPL  1.0
Tools, Application and Framework for xPL
bridge.h
1 
9 #ifndef _GXPL_BRIDGE_HEADER_
10 #define _GXPL_BRIDGE_HEADER_
11 
12 #include <gxPL/defs.h>
13 __BEGIN_C_DECLS
14 /* ========================================================================== */
15 
16 
17 /* internal public functions ================================================ */
18 
36 gxPLBridge * gxPLBridgeOpen (gxPLSetting * insetting, gxPLSetting * outsetting, uint8_t max_hop);
37 
46 int gxPLBridgeSetNewInSetting (gxPLBridge * bridge, gxPLSetting * insetting);
47 
57 int gxPLBridgeDeviceSet (gxPLBridge * bridge,
58  const char * vendor_id, const char * device_id,
59  const char * filename, const char * version);
60 
66 gxPLDevice * gxPLBridgeDevice (gxPLBridge * bridge);
67 
74 int gxPLBridgeDeviceEnable (gxPLBridge * bridge, bool enable);
75 
81 int gxPLBridgeDeviceIsEnabled (const gxPLBridge * bridge);
82 
88 int gxPLBridgeClose (gxPLBridge * bridge);
89 
96 int gxPLBridgePoll (gxPLBridge * bridge, int timeout_ms);
97 
103 gxPLApplication * gxPLBridgeInApp (gxPLBridge * bridge);
104 
110 gxPLApplication * gxPLBridgeOutApp (gxPLBridge * bridge);
111 
116 /* ========================================================================== */
117 __END_C_DECLS
118 #endif /* _GXPL_BRIDGE_HEADER_ defined */
int gxPLBridgeDeviceEnable(gxPLBridge *bridge, bool enable)
Enable device for the outsite network.
int gxPLBridgeClose(gxPLBridge *bridge)
Close a gxPLBridge object and release all ressources.
int gxPLBridgeDeviceIsEnabled(const gxPLBridge *bridge)
Checks if device is enabled.
int gxPLBridgePoll(gxPLBridge *bridge, int timeout_ms)
Polling event of a bridge.
int gxPLBridgeDeviceSet(gxPLBridge *bridge, const char *vendor_id, const char *device_id, const char *filename, const char *version)
Sets the device for the outsite network.
Describe a gxPLApplication configuration.
Definition: defs.h:238
gxPLApplication * gxPLBridgeInApp(gxPLBridge *bridge)
Returns the inside application.
gxPLDevice * gxPLBridgeDevice(gxPLBridge *bridge)
Returns the device for the outsite network.
gxPLBridge * gxPLBridgeOpen(gxPLSetting *insetting, gxPLSetting *outsetting, uint8_t max_hop)
Opens a new gxPLBridge object.
gxPLApplication * gxPLBridgeOutApp(gxPLBridge *bridge)
Returns the outside application.
int gxPLBridgeSetNewInSetting(gxPLBridge *bridge, gxPLSetting *insetting)
Sets new setting for inside network If configuration differ, the network will be closed then opened w...