buffer.h cms.h http.h minmax.h services.h util_iconv.h
cds.h content.h metadata.h msr.h trace.h
cfgparser.h gettext.h mime.h presentation.h ushare.h
- buffer.h: String buffer manipulation tools
char *buf;
size_t len;
size_t capacity; <-- 這較特別
};
及 buffer_new(), buffer_free(), buffer_append(), buffer_appendf() <-- format
- cds.h: Content Directory Service
- cfgparser.h: config file parser
- cms.h: Connection Management Service
- content.h: content list
char **content;
int count;
} content_list; <-- 這寫法是個陣列
add_content(), del_content(指明 idx), free_content() <-- 整個 list,非單一
- gettext.h: conditional use of GNU
- http.h: Web Server handler
- metadata.h: CDS Metadata DB
int id;
char *fullpath;
struct upnp_entry_t *parent;
int child_count;
struct upnp_entry_t **childs;
char *class;
char *protocol;
char *title;
char *url;
int size;
int fd;
};
typedef struct xml_convert_s {
char charac;
char *xml;
} xml_convert_t;
free_metadata_list(), build_metadata_list(), upnp_get_entry(), upnp_entry_free()
- mime.h: media file MIME-type association
char *extension;
char *class;
char *protocol;
};
- msr.h: Microsoft Registrar Service Routine
- presentation.h: UPnP Presentation Page
- services.h: UPnP services handler
char *name;
bool (*function) (struct action_event_t *);
};
struct service_t {
char *id;
char *type;
struct service_action_t *actions;
};
#define SERVICE_CONTENT_TYPE "text/xml"
find_service_action(), upnp_add_response(), upnp_get_string(), upnp_get_ui4()
- trace.h: log facility
- ushare.h: UPnP Media Server
UPNP_DESCRIPTION,
struct ushare_t {
char *name;
char *interface;
content_list *contentlist;
struct upnp_entry_t *root_entry;
int nr_entries;
int init;
UpnpDevice_Handle dev;
char *udn;
char *ip;
unsigned short port;
struct buffer_t *presentation;
bool use_presentation;
bool verbose;
bool daemon;
};
struct action_event_t {
struct Upnp_Action_Request *request;
bool status;
struct service_t *service;
};
- util_iconv.h: iconv string encoding utilities
0 意見:
張貼留言