sc_automationBridgeDevice Struct Reference

Base automation bridge device class. More...

#include <si_sha/abrgdev.h>

List of all members.

Public Attributes

sc_automationDevice base_
const
sc_automationBridgeDevice_vtable
vtbl_
void * instance_
se_bridgeState state_
pthread_mutex_t mux_
pthread_t svcThread_
sc_automationPacketPtrh xchg_
sc_automationDeviceMgrpdm_
int fd_
int fdCtlC_
int fdCtlS_


Detailed Description

Base automation bridge device class.

This serves as a base class for bridges on the JavaScript side. The base class is able to handle much of the boiler-plate code of being a device. Derived class bridges need to provide virtual functions for the following:

The base will start the needed threads, and when events from the network or requests from JavaScript arrive, it will forward these to the derived class for processing.


Member Data Documentation

Bridges are derived from Device base.

Low-level bridge driver fd

Control fd for Client side

Control fd for Server side

Derived instance address. Passed to derived v-table functions.

Mutex for thread safety

Reference to Automation Device Manager

Bridge state (started, stopped, etc.)

Thread handling events & requests

Derived v-table

sc_automationPacketPtrh sc_automationBridgeDevice::xchg_

Exchange point for packets between JS engine and service thread.


The documentation for this struct was generated from the following file:

doxygen