hdhomerun_control.c File Reference

Go to the source code of this file.

Classes

struct  hdhomerun_control_sock_t

Functions

static void hdhomerun_control_close_sock (struct hdhomerun_control_sock_t *cs)
void hdhomerun_control_set_device (struct hdhomerun_control_sock_t *cs, uint32_t device_id, uint32_t device_ip)
struct hdhomerun_control_sock_thdhomerun_control_create (uint32_t device_id, uint32_t device_ip, struct hdhomerun_debug_t *dbg)
void hdhomerun_control_destroy (struct hdhomerun_control_sock_t *cs)
static bool_t hdhomerun_control_connect_sock (struct hdhomerun_control_sock_t *cs)
uint32_t hdhomerun_control_get_device_id (struct hdhomerun_control_sock_t *cs)
uint32_t hdhomerun_control_get_device_ip (struct hdhomerun_control_sock_t *cs)
uint32_t hdhomerun_control_get_device_id_requested (struct hdhomerun_control_sock_t *cs)
uint32_t hdhomerun_control_get_device_ip_requested (struct hdhomerun_control_sock_t *cs)
uint32_t hdhomerun_control_get_local_addr (struct hdhomerun_control_sock_t *cs)
static bool_t hdhomerun_control_send_sock (struct hdhomerun_control_sock_t *cs, struct hdhomerun_pkt_t *tx_pkt)
static bool_t hdhomerun_control_recv_sock (struct hdhomerun_control_sock_t *cs, struct hdhomerun_pkt_t *rx_pkt, uint16_t *ptype, uint64_t recv_timeout)
static int hdhomerun_control_send_recv_internal (struct hdhomerun_control_sock_t *cs, struct hdhomerun_pkt_t *tx_pkt, struct hdhomerun_pkt_t *rx_pkt, uint16_t type, uint64_t recv_timeout)
int hdhomerun_control_send_recv (struct hdhomerun_control_sock_t *cs, struct hdhomerun_pkt_t *tx_pkt, struct hdhomerun_pkt_t *rx_pkt, uint16_t type)
static int hdhomerun_control_get_set (struct hdhomerun_control_sock_t *cs, const char *name, const char *value, uint32_t lockkey, char **pvalue, char **perror)
int hdhomerun_control_get (struct hdhomerun_control_sock_t *cs, const char *name, char **pvalue, char **perror)
int hdhomerun_control_set (struct hdhomerun_control_sock_t *cs, const char *name, const char *value, char **pvalue, char **perror)
int hdhomerun_control_set_with_lockkey (struct hdhomerun_control_sock_t *cs, const char *name, const char *value, uint32_t lockkey, char **pvalue, char **perror)
int hdhomerun_control_upgrade (struct hdhomerun_control_sock_t *cs, FILE *upgrade_file)

Function Documentation

static void hdhomerun_control_close_sock ( struct hdhomerun_control_sock_t cs  )  [static]
void hdhomerun_control_set_device ( struct hdhomerun_control_sock_t cs,
uint32_t  device_id,
uint32_t  device_ip 
)
struct hdhomerun_control_sock_t* hdhomerun_control_create ( uint32_t  device_id,
uint32_t  device_ip,
struct hdhomerun_debug_t dbg 
) [read]

Definition at line 71 of file hdhomerun_control.c.

Referenced by hdhomerun_device_set_device_normal().

void hdhomerun_control_destroy ( struct hdhomerun_control_sock_t cs  ) 
static bool_t hdhomerun_control_connect_sock ( struct hdhomerun_control_sock_t cs  )  [static]
uint32_t hdhomerun_control_get_device_id ( struct hdhomerun_control_sock_t cs  ) 

Definition at line 134 of file hdhomerun_control.c.

Referenced by hdhomerun_device_set_device_normal().

uint32_t hdhomerun_control_get_device_ip ( struct hdhomerun_control_sock_t cs  ) 

Definition at line 144 of file hdhomerun_control.c.

Referenced by hdhomerun_device_get_device_ip().

uint32_t hdhomerun_control_get_device_id_requested ( struct hdhomerun_control_sock_t cs  ) 

Definition at line 154 of file hdhomerun_control.c.

Referenced by hdhomerun_device_get_device_id_requested().

uint32_t hdhomerun_control_get_device_ip_requested ( struct hdhomerun_control_sock_t cs  ) 

Definition at line 159 of file hdhomerun_control.c.

Referenced by hdhomerun_device_get_device_ip_requested().

uint32_t hdhomerun_control_get_local_addr ( struct hdhomerun_control_sock_t cs  ) 
static bool_t hdhomerun_control_send_sock ( struct hdhomerun_control_sock_t cs,
struct hdhomerun_pkt_t tx_pkt 
) [static]

Definition at line 180 of file hdhomerun_control.c.

Referenced by hdhomerun_control_send_recv_internal().

static bool_t hdhomerun_control_recv_sock ( struct hdhomerun_control_sock_t cs,
struct hdhomerun_pkt_t rx_pkt,
uint16_t ptype,
uint64_t  recv_timeout 
) [static]

Definition at line 191 of file hdhomerun_control.c.

Referenced by hdhomerun_control_send_recv_internal().

static int hdhomerun_control_send_recv_internal ( struct hdhomerun_control_sock_t cs,
struct hdhomerun_pkt_t tx_pkt,
struct hdhomerun_pkt_t rx_pkt,
uint16_t  type,
uint64_t  recv_timeout 
) [static]
int hdhomerun_control_send_recv ( struct hdhomerun_control_sock_t cs,
struct hdhomerun_pkt_t tx_pkt,
struct hdhomerun_pkt_t rx_pkt,
uint16_t  type 
)

Definition at line 262 of file hdhomerun_control.c.

static int hdhomerun_control_get_set ( struct hdhomerun_control_sock_t cs,
const char *  name,
const char *  value,
uint32_t  lockkey,
char **  pvalue,
char **  perror 
) [static]
int hdhomerun_control_get ( struct hdhomerun_control_sock_t cs,
const char *  name,
char **  pvalue,
char **  perror 
)
int hdhomerun_control_set ( struct hdhomerun_control_sock_t cs,
const char *  name,
const char *  value,
char **  pvalue,
char **  perror 
)
int hdhomerun_control_set_with_lockkey ( struct hdhomerun_control_sock_t cs,
const char *  name,
const char *  value,
uint32_t  lockkey,
char **  pvalue,
char **  perror 
)
int hdhomerun_control_upgrade ( struct hdhomerun_control_sock_t cs,
FILE *  upgrade_file 
)

Definition at line 367 of file hdhomerun_control.c.

Referenced by hdhomerun_device_upgrade().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:47 2012 for MythTV by  doxygen 1.6.3