hdhomerun_device.c File Reference

Go to the source code of this file.

Classes

struct  hdhomerun_device_t

Functions

static void hdhomerun_device_set_update (struct hdhomerun_device_t *hd)
void hdhomerun_device_set_device (struct hdhomerun_device_t *hd, uint32_t device_id, uint32_t device_ip)
void hdhomerun_device_set_tuner (struct hdhomerun_device_t *hd, unsigned int tuner)
struct hdhomerun_device_thdhomerun_device_create (uint32_t device_id, uint32_t device_ip, unsigned int tuner, struct hdhomerun_debug_t *dbg)
void hdhomerun_device_destroy (struct hdhomerun_device_t *hd)
static bool_t is_hex_char (char c)
static struct hdhomerun_device_thdhomerun_device_create_from_str_device_id (const char *device_str, struct hdhomerun_debug_t *dbg)
static struct hdhomerun_device_thdhomerun_device_create_from_str_ip (const char *device_str, struct hdhomerun_debug_t *dbg)
static struct hdhomerun_device_thdhomerun_device_create_from_str_dns (const char *device_str, struct hdhomerun_debug_t *dbg)
struct hdhomerun_device_thdhomerun_device_create_from_str (const char *device_str, struct hdhomerun_debug_t *dbg)
int hdhomerun_device_set_tuner_from_str (struct hdhomerun_device_t *hd, const char *tuner_str)
const char * hdhomerun_device_get_name (struct hdhomerun_device_t *hd)
uint32_t hdhomerun_device_get_device_id (struct hdhomerun_device_t *hd)
uint32_t hdhomerun_device_get_device_ip (struct hdhomerun_device_t *hd)
uint32_t hdhomerun_device_get_device_id_requested (struct hdhomerun_device_t *hd)
uint32_t hdhomerun_device_get_device_ip_requested (struct hdhomerun_device_t *hd)
unsigned int hdhomerun_device_get_tuner (struct hdhomerun_device_t *hd)
struct hdhomerun_control_sock_thdhomerun_device_get_control_sock (struct hdhomerun_device_t *hd)
struct hdhomerun_video_sock_thdhomerun_device_get_video_sock (struct hdhomerun_device_t *hd)
uint32_t hdhomerun_device_get_local_machine_addr (struct hdhomerun_device_t *hd)
static uint32_t hdhomerun_device_get_status_parse (const char *status_str, const char *tag)
static bool_t hdhomerun_device_get_tuner_status_lock_is_bcast (struct hdhomerun_tuner_status_t *status)
uint32_t hdhomerun_device_get_tuner_status_ss_color (struct hdhomerun_tuner_status_t *status)
uint32_t hdhomerun_device_get_tuner_status_snq_color (struct hdhomerun_tuner_status_t *status)
uint32_t hdhomerun_device_get_tuner_status_seq_color (struct hdhomerun_tuner_status_t *status)
int hdhomerun_device_get_tuner_status (struct hdhomerun_device_t *hd, char **pstatus_str, struct hdhomerun_tuner_status_t *status)
int hdhomerun_device_get_tuner_streaminfo (struct hdhomerun_device_t *hd, char **pstreaminfo)
int hdhomerun_device_get_tuner_channel (struct hdhomerun_device_t *hd, char **pchannel)
int hdhomerun_device_get_tuner_channelmap (struct hdhomerun_device_t *hd, char **pchannelmap)
int hdhomerun_device_get_tuner_filter (struct hdhomerun_device_t *hd, char **pfilter)
int hdhomerun_device_get_tuner_program (struct hdhomerun_device_t *hd, char **pprogram)
int hdhomerun_device_get_tuner_target (struct hdhomerun_device_t *hd, char **ptarget)
int hdhomerun_device_get_tuner_plotsample (struct hdhomerun_device_t *hd, struct hdhomerun_plotsample_t **psamples, size_t *pcount)
int hdhomerun_device_get_tuner_lockkey_owner (struct hdhomerun_device_t *hd, char **powner)
int hdhomerun_device_get_ir_target (struct hdhomerun_device_t *hd, char **ptarget)
int hdhomerun_device_get_lineup_location (struct hdhomerun_device_t *hd, char **plocation)
int hdhomerun_device_get_version (struct hdhomerun_device_t *hd, char **pversion_str, uint32_t *pversion_num)
int hdhomerun_device_set_tuner_channel (struct hdhomerun_device_t *hd, const char *channel)
int hdhomerun_device_set_tuner_channelmap (struct hdhomerun_device_t *hd, const char *channelmap)
int hdhomerun_device_set_tuner_filter (struct hdhomerun_device_t *hd, const char *filter)
static int hdhomerun_device_set_tuner_filter_by_array_append (char **pptr, char *end, uint16_t range_begin, uint16_t range_end)
int hdhomerun_device_set_tuner_filter_by_array (struct hdhomerun_device_t *hd, unsigned char filter_array[0x2000])
int hdhomerun_device_set_tuner_program (struct hdhomerun_device_t *hd, const char *program)
int hdhomerun_device_set_tuner_target (struct hdhomerun_device_t *hd, const char *target)
int hdhomerun_device_set_tuner_target_to_local_protocol (struct hdhomerun_device_t *hd, const char *protocol)
int hdhomerun_device_set_tuner_target_to_local (struct hdhomerun_device_t *hd)
int hdhomerun_device_set_ir_target (struct hdhomerun_device_t *hd, const char *target)
int hdhomerun_device_set_lineup_location (struct hdhomerun_device_t *hd, const char *location)
int hdhomerun_device_get_var (struct hdhomerun_device_t *hd, const char *name, char **pvalue, char **perror)
int hdhomerun_device_set_var (struct hdhomerun_device_t *hd, const char *name, const char *value, char **pvalue, char **perror)
int hdhomerun_device_tuner_lockkey_request (struct hdhomerun_device_t *hd, char **perror)
int hdhomerun_device_tuner_lockkey_release (struct hdhomerun_device_t *hd)
int hdhomerun_device_tuner_lockkey_force (struct hdhomerun_device_t *hd)
void hdhomerun_device_tuner_lockkey_use_value (struct hdhomerun_device_t *hd, uint32_t lockkey)
int hdhomerun_device_wait_for_lock (struct hdhomerun_device_t *hd, struct hdhomerun_tuner_status_t *status)
int hdhomerun_device_stream_start (struct hdhomerun_device_t *hd)
int hdhomerun_device_stream_refresh_target (struct hdhomerun_device_t *hd)
uint8_t * hdhomerun_device_stream_recv (struct hdhomerun_device_t *hd, size_t max_size, size_t *pactual_size)
void hdhomerun_device_stream_flush (struct hdhomerun_device_t *hd)
void hdhomerun_device_stream_stop (struct hdhomerun_device_t *hd)
int hdhomerun_device_channelscan_init (struct hdhomerun_device_t *hd, const char *channelmap)
int hdhomerun_device_channelscan_advance (struct hdhomerun_device_t *hd, struct hdhomerun_channelscan_result_t *result)
int hdhomerun_device_channelscan_detect (struct hdhomerun_device_t *hd, struct hdhomerun_channelscan_result_t *result)
uint8_t hdhomerun_device_channelscan_get_progress (struct hdhomerun_device_t *hd)
int hdhomerun_device_firmware_version_check (struct hdhomerun_device_t *hd, uint32_t features)
const char * hdhomerun_device_get_model_str (struct hdhomerun_device_t *hd)
int hdhomerun_device_upgrade (struct hdhomerun_device_t *hd, FILE *upgrade_file)
void hdhomerun_device_debug_print_video_stats (struct hdhomerun_device_t *hd)
void hdhomerun_device_get_video_stats (struct hdhomerun_device_t *hd, struct hdhomerun_video_stats_t *stats)


Function Documentation

static void hdhomerun_device_set_update ( struct hdhomerun_device_t hd  )  [static]

Definition at line 47 of file hdhomerun_device.c.

Referenced by hdhomerun_device_set_device(), and hdhomerun_device_set_tuner().

void hdhomerun_device_set_device ( struct hdhomerun_device_t hd,
uint32_t  device_id,
uint32_t  device_ip 
)

Definition at line 56 of file hdhomerun_device.c.

Referenced by hdhomerun_device_create().

void hdhomerun_device_set_tuner ( struct hdhomerun_device_t hd,
unsigned int  tuner 
)

struct hdhomerun_device_t* hdhomerun_device_create ( uint32_t  device_id,
uint32_t  device_ip,
unsigned int  tuner,
struct hdhomerun_debug_t dbg 
) [read]

void hdhomerun_device_destroy ( struct hdhomerun_device_t hd  ) 

static bool_t is_hex_char ( char  c  )  [static]

Definition at line 112 of file hdhomerun_device.c.

Referenced by hdhomerun_device_create_from_str_device_id().

static struct hdhomerun_device_t* hdhomerun_device_create_from_str_device_id ( const char *  device_str,
struct hdhomerun_debug_t dbg 
) [static, read]

Definition at line 126 of file hdhomerun_device.c.

Referenced by hdhomerun_device_create_from_str().

static struct hdhomerun_device_t* hdhomerun_device_create_from_str_ip ( const char *  device_str,
struct hdhomerun_debug_t dbg 
) [static, read]

Definition at line 156 of file hdhomerun_device.c.

Referenced by hdhomerun_device_create_from_str().

static struct hdhomerun_device_t* hdhomerun_device_create_from_str_dns ( const char *  device_str,
struct hdhomerun_debug_t dbg 
) [static, read]

Definition at line 167 of file hdhomerun_device.c.

Referenced by hdhomerun_device_create_from_str().

struct hdhomerun_device_t* hdhomerun_device_create_from_str ( const char *  device_str,
struct hdhomerun_debug_t dbg 
) [read]

int hdhomerun_device_set_tuner_from_str ( struct hdhomerun_device_t hd,
const char *  tuner_str 
)

Definition at line 215 of file hdhomerun_device.c.

Referenced by cmd_save(), and cmd_scan().

const char* hdhomerun_device_get_name ( struct hdhomerun_device_t hd  ) 

Definition at line 230 of file hdhomerun_device.c.

Referenced by hdhomerun_device_selector_choose_test().

uint32_t hdhomerun_device_get_device_id ( struct hdhomerun_device_t hd  ) 

Definition at line 235 of file hdhomerun_device.c.

Referenced by hdhomerun_device_selector_find_device().

uint32_t hdhomerun_device_get_device_ip ( struct hdhomerun_device_t hd  ) 

Definition at line 240 of file hdhomerun_device.c.

uint32_t hdhomerun_device_get_device_id_requested ( struct hdhomerun_device_t hd  ) 

Definition at line 245 of file hdhomerun_device.c.

Referenced by main_internal().

uint32_t hdhomerun_device_get_device_ip_requested ( struct hdhomerun_device_t hd  ) 

Definition at line 250 of file hdhomerun_device.c.

unsigned int hdhomerun_device_get_tuner ( struct hdhomerun_device_t hd  ) 

Definition at line 255 of file hdhomerun_device.c.

Referenced by hdhomerun_device_selector_find_device().

struct hdhomerun_control_sock_t* hdhomerun_device_get_control_sock ( struct hdhomerun_device_t hd  )  [read]

Definition at line 260 of file hdhomerun_device.c.

struct hdhomerun_video_sock_t* hdhomerun_device_get_video_sock ( struct hdhomerun_device_t hd  )  [read]

uint32_t hdhomerun_device_get_local_machine_addr ( struct hdhomerun_device_t hd  ) 

static uint32_t hdhomerun_device_get_status_parse ( const char *  status_str,
const char *  tag 
) [static]

Definition at line 285 of file hdhomerun_device.c.

Referenced by hdhomerun_device_get_tuner_status().

static bool_t hdhomerun_device_get_tuner_status_lock_is_bcast ( struct hdhomerun_tuner_status_t status  )  [static]

Definition at line 298 of file hdhomerun_device.c.

Referenced by hdhomerun_device_get_tuner_status_ss_color().

uint32_t hdhomerun_device_get_tuner_status_ss_color ( struct hdhomerun_tuner_status_t status  ) 

Definition at line 316 of file hdhomerun_device.c.

uint32_t hdhomerun_device_get_tuner_status_snq_color ( struct hdhomerun_tuner_status_t status  ) 

Definition at line 343 of file hdhomerun_device.c.

uint32_t hdhomerun_device_get_tuner_status_seq_color ( struct hdhomerun_tuner_status_t status  ) 

Definition at line 355 of file hdhomerun_device.c.

int hdhomerun_device_get_tuner_status ( struct hdhomerun_device_t hd,
char **  pstatus_str,
struct hdhomerun_tuner_status_t status 
)

int hdhomerun_device_get_tuner_streaminfo ( struct hdhomerun_device_t hd,
char **  pstreaminfo 
)

Definition at line 410 of file hdhomerun_device.c.

Referenced by channelscan_detect_programs().

int hdhomerun_device_get_tuner_channel ( struct hdhomerun_device_t hd,
char **  pchannel 
)

Definition at line 417 of file hdhomerun_device.c.

int hdhomerun_device_get_tuner_channelmap ( struct hdhomerun_device_t hd,
char **  pchannelmap 
)

Definition at line 424 of file hdhomerun_device.c.

Referenced by cmd_scan().

int hdhomerun_device_get_tuner_filter ( struct hdhomerun_device_t hd,
char **  pfilter 
)

Definition at line 431 of file hdhomerun_device.c.

int hdhomerun_device_get_tuner_program ( struct hdhomerun_device_t hd,
char **  pprogram 
)

Definition at line 438 of file hdhomerun_device.c.

int hdhomerun_device_get_tuner_target ( struct hdhomerun_device_t hd,
char **  ptarget 
)

Definition at line 445 of file hdhomerun_device.c.

Referenced by hdhomerun_device_selector_choose_test().

int hdhomerun_device_get_tuner_plotsample ( struct hdhomerun_device_t hd,
struct hdhomerun_plotsample_t **  psamples,
size_t *  pcount 
)

Definition at line 452 of file hdhomerun_device.c.

int hdhomerun_device_get_tuner_lockkey_owner ( struct hdhomerun_device_t hd,
char **  powner 
)

Definition at line 501 of file hdhomerun_device.c.

int hdhomerun_device_get_ir_target ( struct hdhomerun_device_t hd,
char **  ptarget 
)

Definition at line 508 of file hdhomerun_device.c.

int hdhomerun_device_get_lineup_location ( struct hdhomerun_device_t hd,
char **  plocation 
)

Definition at line 513 of file hdhomerun_device.c.

int hdhomerun_device_get_version ( struct hdhomerun_device_t hd,
char **  pversion_str,
uint32_t pversion_num 
)

Definition at line 518 of file hdhomerun_device.c.

Referenced by cmd_upgrade(), and hdhomerun_device_firmware_version_check().

int hdhomerun_device_set_tuner_channel ( struct hdhomerun_device_t hd,
const char *  channel 
)

int hdhomerun_device_set_tuner_channelmap ( struct hdhomerun_device_t hd,
const char *  channelmap 
)

Definition at line 549 of file hdhomerun_device.c.

int hdhomerun_device_set_tuner_filter ( struct hdhomerun_device_t hd,
const char *  filter 
)

Definition at line 556 of file hdhomerun_device.c.

Referenced by hdhomerun_device_set_tuner_filter_by_array().

static int hdhomerun_device_set_tuner_filter_by_array_append ( char **  pptr,
char *  end,
uint16_t  range_begin,
uint16_t  range_end 
) [static]

Definition at line 563 of file hdhomerun_device.c.

Referenced by hdhomerun_device_set_tuner_filter_by_array().

int hdhomerun_device_set_tuner_filter_by_array ( struct hdhomerun_device_t hd,
unsigned char  filter_array[0x2000] 
)

Definition at line 584 of file hdhomerun_device.c.

int hdhomerun_device_set_tuner_program ( struct hdhomerun_device_t hd,
const char *  program 
)

Definition at line 631 of file hdhomerun_device.c.

Referenced by HDHRChannel::SetChannelByString().

int hdhomerun_device_set_tuner_target ( struct hdhomerun_device_t hd,
const char *  target 
)

int hdhomerun_device_set_tuner_target_to_local_protocol ( struct hdhomerun_device_t hd,
const char *  protocol 
)

int hdhomerun_device_set_tuner_target_to_local ( struct hdhomerun_device_t hd  ) 

Definition at line 667 of file hdhomerun_device.c.

int hdhomerun_device_set_ir_target ( struct hdhomerun_device_t hd,
const char *  target 
)

Definition at line 672 of file hdhomerun_device.c.

int hdhomerun_device_set_lineup_location ( struct hdhomerun_device_t hd,
const char *  location 
)

Definition at line 677 of file hdhomerun_device.c.

int hdhomerun_device_get_var ( struct hdhomerun_device_t hd,
const char *  name,
char **  pvalue,
char **  perror 
)

Definition at line 682 of file hdhomerun_device.c.

Referenced by cmd_execute(), cmd_get(), and HDHRChannel::DeviceGet().

int hdhomerun_device_set_var ( struct hdhomerun_device_t hd,
const char *  name,
const char *  value,
char **  pvalue,
char **  perror 
)

Definition at line 687 of file hdhomerun_device.c.

Referenced by cmd_set_internal(), and HDHRChannel::DeviceSet().

int hdhomerun_device_tuner_lockkey_request ( struct hdhomerun_device_t hd,
char **  perror 
)

Definition at line 692 of file hdhomerun_device.c.

Referenced by cmd_scan(), and hdhomerun_device_selector_choose_test().

int hdhomerun_device_tuner_lockkey_release ( struct hdhomerun_device_t hd  ) 

Definition at line 712 of file hdhomerun_device.c.

Referenced by cmd_scan().

int hdhomerun_device_tuner_lockkey_force ( struct hdhomerun_device_t hd  ) 

Definition at line 726 of file hdhomerun_device.c.

Referenced by hdhomerun_device_selector_choose_test().

void hdhomerun_device_tuner_lockkey_use_value ( struct hdhomerun_device_t hd,
uint32_t  lockkey 
)

Definition at line 736 of file hdhomerun_device.c.

Referenced by main_cmd().

int hdhomerun_device_wait_for_lock ( struct hdhomerun_device_t hd,
struct hdhomerun_tuner_status_t status 
)

Definition at line 741 of file hdhomerun_device.c.

Referenced by channelscan_find_lock().

int hdhomerun_device_stream_start ( struct hdhomerun_device_t hd  ) 

Definition at line 770 of file hdhomerun_device.c.

Referenced by cmd_save(), and HDHRSignalMonitor::RunTableMonitor().

int hdhomerun_device_stream_refresh_target ( struct hdhomerun_device_t hd  ) 

Definition at line 786 of file hdhomerun_device.c.

Referenced by hdhomerun_device_stream_start().

uint8_t* hdhomerun_device_stream_recv ( struct hdhomerun_device_t hd,
size_t  max_size,
size_t *  pactual_size 
)

Definition at line 795 of file hdhomerun_device.c.

Referenced by cmd_save(), and HDHRSignalMonitor::RunTableMonitor().

void hdhomerun_device_stream_flush ( struct hdhomerun_device_t hd  ) 

Definition at line 803 of file hdhomerun_device.c.

void hdhomerun_device_stream_stop ( struct hdhomerun_device_t hd  ) 

Definition at line 808 of file hdhomerun_device.c.

Referenced by cmd_save(), and HDHRSignalMonitor::RunTableMonitor().

int hdhomerun_device_channelscan_init ( struct hdhomerun_device_t hd,
const char *  channelmap 
)

Definition at line 813 of file hdhomerun_device.c.

Referenced by cmd_scan().

int hdhomerun_device_channelscan_advance ( struct hdhomerun_device_t hd,
struct hdhomerun_channelscan_result_t result 
)

Definition at line 827 of file hdhomerun_device.c.

Referenced by cmd_scan().

int hdhomerun_device_channelscan_detect ( struct hdhomerun_device_t hd,
struct hdhomerun_channelscan_result_t result 
)

Definition at line 842 of file hdhomerun_device.c.

Referenced by cmd_scan().

uint8_t hdhomerun_device_channelscan_get_progress ( struct hdhomerun_device_t hd  ) 

Definition at line 857 of file hdhomerun_device.c.

int hdhomerun_device_firmware_version_check ( struct hdhomerun_device_t hd,
uint32_t  features 
)

Definition at line 866 of file hdhomerun_device.c.

const char* hdhomerun_device_get_model_str ( struct hdhomerun_device_t hd  ) 

Definition at line 880 of file hdhomerun_device.c.

Referenced by channelscan_detect(), and main_internal().

int hdhomerun_device_upgrade ( struct hdhomerun_device_t hd,
FILE *  upgrade_file 
)

Definition at line 901 of file hdhomerun_device.c.

Referenced by cmd_upgrade().

void hdhomerun_device_debug_print_video_stats ( struct hdhomerun_device_t hd  ) 

Definition at line 912 of file hdhomerun_device.c.

void hdhomerun_device_get_video_stats ( struct hdhomerun_device_t hd,
struct hdhomerun_video_stats_t stats 
)

Definition at line 940 of file hdhomerun_device.c.

Referenced by cmd_save().


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