rtv.h File Reference

#include <stdio.h>
#include <stdarg.h>

Go to the source code of this file.

Data Structures

struct  mapping
struct  rtv_idns_t
struct  rtv_globals_t

Defines

#define TRUE   (1)
#define FALSE   (0)
#define U64F   "ll"
#define RTVLOG_INFO   (rtv_globals.rtv_debug & 0x00000001)
#define RTVLOG_DSCVR   (rtv_globals.rtv_debug & 0x00000002)
#define RTVLOG_GUIDE   (rtv_globals.rtv_debug & 0x00000004)
#define RTVLOG_HTTP   (rtv_globals.rtv_debug & 0x00000008)
#define RTVLOG_HTTP_VERB   (rtv_globals.rtv_debug & 0x00000010)
#define RTVLOG_NET   (rtv_globals.rtv_debug & 0x00000020)
#define RTVLOG_CMD   (rtv_globals.rtv_debug & 0x00000040)
#define RTVLOG_EVTFILE   (rtv_globals.rtv_debug & 0x00000100)
#define RTVLOG_EVTFILE_V2   (rtv_globals.rtv_debug & 0x00000200)
#define RTVLOG_EVTFILE_V3   (rtv_globals.rtv_debug & 0x00000400)
#define RTVLOG_NDX   (rtv_globals.rtv_debug & 0x00001000)
#define RTVLOG_NETDUMP   (rtv_globals.rtv_debug & 0x00002000)
#define RTV_PRT(fmt, args...)   fprintf(stdout, fmt, ## args)
#define RTV_ERRLOG(fmt, args...)   RTV_PRT("rtv:ERROR: " fmt, ## args)
#define RTV_WARNLOG(fmt, args...)   RTV_PRT("rtv:WARN: " fmt, ## args)
#define RTV_DBGLOG(flag, fmt, args...)   if (flag) { RTV_PRT("rtv:DBG:" fmt, ## args); }

Functions

int split_lines (char *src, char ***pdst)
void rtvVLog (const char *format, va_list ap)
static void rtv_log (const char *format,...)

Variables

rtv_idns_t rtv_idns
rtv_globals_t rtv_globals


Define Documentation

#define FALSE   (0)
 

Definition at line 22 of file rtv.h.

#define RTV_DBGLOG flag,
fmt,
args...   )     if (flag) { RTV_PRT("rtv:DBG:" fmt, ## args); }
 

Definition at line 139 of file rtv.h.

#define RTV_ERRLOG fmt,
args...   )     RTV_PRT("rtv:ERROR: " fmt, ## args)
 

Definition at line 137 of file rtv.h.

#define RTV_PRT fmt,
args...   )     fprintf(stdout, fmt, ## args)
 

Definition at line 135 of file rtv.h.

#define RTV_WARNLOG fmt,
args...   )     RTV_PRT("rtv:WARN: " fmt, ## args)
 

Definition at line 138 of file rtv.h.

#define RTVLOG_CMD   (rtv_globals.rtv_debug & 0x00000040)
 

Definition at line 127 of file rtv.h.

Referenced by guide_do_request(), hfs_callback(), hfs_do_chunked(), hfs_do_post_simple(), hfs_do_simple(), hfs_do_simple_binary(), make_httpfs_url(), and make_request().

#define RTVLOG_DSCVR   (rtv_globals.rtv_debug & 0x00000002)
 

Definition at line 122 of file rtv.h.

Referenced by make_get_guide_resp(), process_ssdp_response(), pull_fd_queue(), push_fd_queue(), rtv_discover(), rtv_discovery_thread(), rtv_get_device_info(), rtv_halt_discovery_server(), and server_process_connection().

#define RTVLOG_EVTFILE   (rtv_globals.rtv_debug & 0x00000100)
 

Definition at line 128 of file rtv.h.

Referenced by rtv_parse_evt_file().

#define RTVLOG_EVTFILE_V2   (rtv_globals.rtv_debug & 0x00000200)
 

Definition at line 129 of file rtv.h.

#define RTVLOG_EVTFILE_V3   (rtv_globals.rtv_debug & 0x00000400)
 

Definition at line 130 of file rtv.h.

Referenced by rtv_parse_evt_file().

#define RTVLOG_GUIDE   (rtv_globals.rtv_debug & 0x00000004)
 

Definition at line 123 of file rtv.h.

Referenced by get_guide_ss(), get_rtv5k_snapshot_callback(), guide_do_request(), parse_guide_snapshot(), parse_show(), rtv_delete_show(), rtv_get_play_position(), and rtv_is_show_inuse().

#define RTVLOG_HTTP   (rtv_globals.rtv_debug & 0x00000008)
 

Definition at line 124 of file rtv.h.

Referenced by hc_read_pieces(), and hc_send_request().

#define RTVLOG_HTTP_VERB   (rtv_globals.rtv_debug & 0x00000010)
 

Definition at line 125 of file rtv.h.

Referenced by hc_add_req_header(), hc_read_pieces(), hc_send_request(), and hc_start_request().

#define RTVLOG_INFO   (rtv_globals.rtv_debug & 0x00000001)
 

Definition at line 121 of file rtv.h.

Referenced by rtv_get_ndx22_rec(), and rtv_get_ndx30_rec().

#define RTVLOG_NDX   (rtv_globals.rtv_debug & 0x00001000)
 

Definition at line 131 of file rtv.h.

Referenced by rtv_get_ndx22_rec(), rtv_get_ndx30_rec(), rtv_open_ndx_file(), and rtv_parse_4k_ndx_file().

#define RTVLOG_NET   (rtv_globals.rtv_debug & 0x00000020)
 

Definition at line 126 of file rtv.h.

Referenced by nc_open().

#define RTVLOG_NETDUMP   (rtv_globals.rtv_debug & 0x00002000)
 

Definition at line 132 of file rtv.h.

Referenced by nc_init().

#define TRUE   (1)
 

Definition at line 21 of file rtv.h.

#define U64F   "ll"
 

Definition at line 68 of file rtv.h.

Referenced by dump_u64(), rtv_get_volinfo(), rtv_print_file_info(), rtv_print_file_list(), rtv_print_show(), rtv_print_volinfo(), rtv_read_file(), and rtv_read_file_chunked().


Function Documentation

static void rtv_log const char *  format,
  ...
[inline, static]
 

Definition at line 110 of file rtv.h.

References rtvVLog().

void rtvVLog const char *  format,
va_list  ap
 

Definition at line 146 of file rtv.c.

References log_count, rtv_globals_t::log_fd, log_rotate_cnt, log_to_file, rotate_logs(), and rtv_globals.

Referenced by rtv_log().

int split_lines char *  src,
char ***  pdst
 

Definition at line 64 of file rtv.c.

Referenced by rtv_get_file_info(), rtv_get_filelist(), and rtv_get_volinfo().


Variable Documentation

rtv_globals_t rtv_globals
 

Definition at line 44 of file rtv.c.

Referenced by make_get_guide_resp(), parse_version_info(), rotate_logs(), rtv_discover(), rtv_discovery_thread(), rtv_get_dbgmask(), rtv_init_lib(), rtv_read_file_chunked(), rtv_route_logs(), rtv_send_ssdp_byebye(), rtv_set_32k_chunks_to_merge(), rtv_set_dbgmask(), rtv_set_discover_options(), rtvVLog(), and server_process_connection().

rtv_idns_t rtv_idns
 

Definition at line 32 of file rtv.c.

Referenced by get_guide_ss(), rtv_discovery_thread(), rtv_send_ssdp_byebye(), and server_process_connection().


Generated on Wed Sep 8 03:13:23 2010 for mvpmc by  doxygen 1.4.6