erratic/sip.h
Definition: nav200.h:82
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
double ReadFloat(int section, const char *name, double value)
Read a floating point (double) value.
Definition: nav200.h:89
Definition: nav200.h:97
#define PLAYER_SET_STRPROP_REQ
String property set request subtype.
Definition: player.h:440
Definition: erratic/sip.h:38
double ReadTupleLength(int section, const char *name, int index, double value)
Read a length from a tuple (includes units conversion)
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:658
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:664
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:166
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
double ReadTupleFloat(int section, const char *name, int index, double value)
Read a float (double) from a tuple field.
Definition: lms400_cola.h:64
const char * ReadFilename(int section, const char *name, const char *value)
Read a filename.
double ReadLength(int section, const char *name, double value)
Read a length (includes unit conversion, if any).
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:112
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
static bool MatchDeviceAddress(player_devaddr_t addr1, player_devaddr_t addr2)
Compare two addresses.
Definition: device.h:201
A rectangular bounding box, used to define the origin and bounds of an object.
Definition: player.h:308
virtual int MainSetup()
Sets up the resources needed by the driver thread.
Definition: imagebase.cc:83
virtual void MainQuit()
Cleanup method for driver thread (called when main exits)
Definition: imagebase.cc:104
#define PLAYER_MSGTYPE_RESP_NACK
A negative response message.
Definition: player.h:125
Definition: imagebase.h:62
int ReadDeviceAddr(player_devaddr_t *addr, int section, const char *name, int code, int index, const char *key)
Read a device id.
int GetTupleCount(int section, const char *name)
Get the number of values in a tuple.
int ReadTupleInt(int section, const char *name, int index, int value)
Read an integer from a tuple field.
#define PLAYER_CAPABILITIES_REQ
Capability request message type.
Definition: player.h:397
Definition: p2os/sip.h:37
Definition: rfi341_protocol.h:43
void ParseSERAUX(unsigned char *buffer)
Parse a SERAUX SIP packet.
Definition: p2os/sip.cc:488
#define PLAYER_SET_INTPROP_REQ
Integer property set request subtype.
Definition: player.h:432
player_devaddr_t addr
Device to which this message pertains.
Definition: player.h:164
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76