-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpshare.h
More file actions
64 lines (52 loc) · 1.35 KB
/
Copy pathpshare.h
File metadata and controls
64 lines (52 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __PSHARE_H
#define __PSHARE_H
#include <stdio.h>
namespace pshare
{
struct list
{
char* buf;
int len;
list* next;
};
struct mime
{
const char* file_ext;
const char* upnp_class;
const char* type;
const char* dlna_type_extras;
const char* http_mime_type;
int container;
};
struct playlist_item
{
int parent_id;
int object_id;
playlist_item* parent;
int track_number;
char* name;
char* url;
char* logo_url;
char* type_extras;
const char* logo_dlna_profile;
const mime* type_info;
int proxy;
int childs;
playlist_item* next;
};
extern FILE* verb_fp;
extern int xbox360;
extern int dlna_extend;
extern const char upnp_video[];
extern const char upnp_audio[];
extern const char upnp_container[];
extern const char upnp_folder[];
extern const char server_name[];
int get_gmt_date(char* dst,int ndst);
int print_http_hdrs(FILE* fp,const char* content_type,int extras);
int print_http_hdrs_no_content(FILE* fp,int extras);
int print_http_error_hdrs(FILE* fp,const char* status,int extras);
int do_proxy(playlist_item* item,FILE* fp);
int do_http_proxy(const char* url,int fd);
}
#endif