hdhomerun_discover.c File Reference

Go to the source code of this file.

Classes

struct  hdhomerun_discover_sock_t
struct  hdhomerun_discover_t

Functions

static bool_t hdhomerun_discover_sock_create (struct hdhomerun_discover_t *ds, uint32_t local_ip, uint32_t subnet_mask)
static void hdhomerun_discover_sock_detect (struct hdhomerun_discover_t *ds)
static struct
hdhomerun_discover_t
hdhomerun_discover_create (void)
static void hdhomerun_discover_destroy (struct hdhomerun_discover_t *ds)
static bool_t hdhomerun_discover_send_internal (struct hdhomerun_discover_t *ds, struct hdhomerun_discover_sock_t *dss, uint32_t target_ip, uint32_t device_type, uint32_t device_id)
static bool_t hdhomerun_discover_send_wildcard_ip (struct hdhomerun_discover_t *ds, uint32_t device_type, uint32_t device_id)
static bool_t hdhomerun_discover_send_target_ip (struct hdhomerun_discover_t *ds, uint32_t target_ip, uint32_t device_type, uint32_t device_id)
static bool_t hdhomerun_discover_send (struct hdhomerun_discover_t *ds, uint32_t target_ip, uint32_t device_type, uint32_t device_id)
static int hdhomerun_discover_recv_internal (struct hdhomerun_discover_t *ds, struct hdhomerun_discover_sock_t *dss, struct hdhomerun_discover_device_t *result)
static int hdhomerun_discover_recv (struct hdhomerun_discover_t *ds, struct hdhomerun_discover_device_t *result)
static struct
hdhomerun_discover_device_t
hdhomerun_discover_find_in_list (struct hdhomerun_discover_device_t result_list[], int count, uint32_t ip_addr)
static int hdhomerun_discover_find_devices_internal (struct hdhomerun_discover_t *ds, uint32_t target_ip, uint32_t device_type, uint32_t device_id, struct hdhomerun_discover_device_t result_list[], int max_count)
int hdhomerun_discover_find_devices_custom (uint32_t target_ip, uint32_t device_type, uint32_t device_id, struct hdhomerun_discover_device_t result_list[], int max_count)
bool_t hdhomerun_discover_validate_device_id (uint32_t device_id)


Function Documentation

static bool_t hdhomerun_discover_sock_create ( struct hdhomerun_discover_t ds,
uint32_t  local_ip,
uint32_t  subnet_mask 
) [static]

static void hdhomerun_discover_sock_detect ( struct hdhomerun_discover_t ds  )  [static]

Definition at line 103 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_create().

static struct hdhomerun_discover_t* hdhomerun_discover_create ( void   )  [static, read]

Definition at line 192 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_find_devices_custom().

static void hdhomerun_discover_destroy ( struct hdhomerun_discover_t ds  )  [static]

Definition at line 212 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_find_devices_custom().

static bool_t hdhomerun_discover_send_internal ( struct hdhomerun_discover_t ds,
struct hdhomerun_discover_sock_t dss,
uint32_t  target_ip,
uint32_t  device_type,
uint32_t  device_id 
) [static]

static bool_t hdhomerun_discover_send_wildcard_ip ( struct hdhomerun_discover_t ds,
uint32_t  device_type,
uint32_t  device_id 
) [static]

Definition at line 250 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_send().

static bool_t hdhomerun_discover_send_target_ip ( struct hdhomerun_discover_t ds,
uint32_t  target_ip,
uint32_t  device_type,
uint32_t  device_id 
) [static]

Definition at line 276 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_send().

static bool_t hdhomerun_discover_send ( struct hdhomerun_discover_t ds,
uint32_t  target_ip,
uint32_t  device_type,
uint32_t  device_id 
) [static]

Definition at line 305 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_find_devices_internal().

static int hdhomerun_discover_recv_internal ( struct hdhomerun_discover_t ds,
struct hdhomerun_discover_sock_t dss,
struct hdhomerun_discover_device_t result 
) [static]

Definition at line 314 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_recv().

static int hdhomerun_discover_recv ( struct hdhomerun_discover_t ds,
struct hdhomerun_discover_device_t result 
) [static]

Definition at line 375 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_find_devices_internal().

static struct hdhomerun_discover_device_t* hdhomerun_discover_find_in_list ( struct hdhomerun_discover_device_t  result_list[],
int  count,
uint32_t  ip_addr 
) [static, read]

Definition at line 414 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_find_devices_internal().

static int hdhomerun_discover_find_devices_internal ( struct hdhomerun_discover_t ds,
uint32_t  target_ip,
uint32_t  device_type,
uint32_t  device_id,
struct hdhomerun_discover_device_t  result_list[],
int  max_count 
) [static]

Definition at line 427 of file hdhomerun_discover.c.

Referenced by hdhomerun_discover_find_devices_custom().

int hdhomerun_discover_find_devices_custom ( uint32_t  target_ip,
uint32_t  device_type,
uint32_t  device_id,
struct hdhomerun_discover_device_t  result_list[],
int  max_count 
)

Definition at line 476 of file hdhomerun_discover.c.

Referenced by discover_print(), and hdhomerun_control_connect_sock().

bool_t hdhomerun_discover_validate_device_id ( uint32_t  device_id  ) 

Definition at line 489 of file hdhomerun_discover.c.

Referenced by HDHRChannel::HDHRChannel(), and main_internal().


Generated on Sat Dec 18 05:15:52 2010 for MythTV by  doxygen 1.5.5