Changeset 5d10806a802531229498178360ca122984f3857c
- Timestamp:
- 01/12/06 19:54:34
(2 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1164999274 +0000
- git-parent:
[bc73810b6215db6710cb6ee39a01422b5535a8ba]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1164999274 +0000
- Message:
Hide some httpd structures from modules
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd3fe7f2 |
r5d10806 |
|
| 2 | 2 | * vlc_httpd.h: builtin HTTP/RTSP server. |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | | * Copyright (C) 2004 the VideoLAN team |
|---|
| | 4 | * Copyright (C) 2004-2006 the VideoLAN team |
|---|
| 5 | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| … | … | |
| 24 | 24 | #ifndef _VLC_HTTPD_H |
|---|
| 25 | 25 | #define _VLC_HTTPD_H 1 |
|---|
| 26 | | |
|---|
| 27 | | /* NEVER touch that, it's here only because src/misc/objects.c |
|---|
| 28 | | * need sizeof(httpd_t) */ |
|---|
| 29 | | struct httpd_t |
|---|
| 30 | | { |
|---|
| 31 | | VLC_COMMON_MEMBERS |
|---|
| 32 | | |
|---|
| 33 | | int i_host; |
|---|
| 34 | | httpd_host_t **host; |
|---|
| 35 | | }; |
|---|
| 36 | 26 | |
|---|
| 37 | 27 | enum |
|---|
| … | … | |
| 62 | 52 | HTTPD_MSG_MAX |
|---|
| 63 | 53 | }; |
|---|
| 64 | | |
|---|
| 65 | | /* each host run in his own thread */ |
|---|
| 66 | | struct httpd_host_t |
|---|
| 67 | | { |
|---|
| 68 | | VLC_COMMON_MEMBERS |
|---|
| 69 | | |
|---|
| 70 | | httpd_t *httpd; |
|---|
| 71 | | |
|---|
| 72 | | /* ref count */ |
|---|
| 73 | | int i_ref; |
|---|
| 74 | | |
|---|
| 75 | | /* address/port and socket for listening at connections */ |
|---|
| 76 | | char *psz_hostname; |
|---|
| 77 | | int i_port; |
|---|
| 78 | | int *fd; |
|---|
| 79 | | |
|---|
| 80 | | /* Statistics */ |
|---|
| 81 | | counter_t *p_active_counter; |
|---|
| 82 | | counter_t *p_total_counter; |
|---|
| 83 | | |
|---|
| 84 | | vlc_mutex_t lock; |
|---|
| 85 | | |
|---|
| 86 | | /* all registered url (becarefull that 2 httpd_url_t could point at the same url) |
|---|
| 87 | | * This will slow down the url research but make my live easier |
|---|
| 88 | | * All url will have their cb trigger, but only the first one can answer |
|---|
| 89 | | * */ |
|---|
| 90 | | int i_url; |
|---|
| 91 | | httpd_url_t **url; |
|---|
| 92 | | |
|---|
| 93 | | int i_client; |
|---|
| 94 | | httpd_client_t **client; |
|---|
| 95 | | |
|---|
| 96 | | /* TLS data */ |
|---|
| 97 | | tls_server_t *p_tls; |
|---|
| 98 | | }; |
|---|
| 99 | | |
|---|
| 100 | 54 | |
|---|
| 101 | 55 | enum |
|---|
| rd3fe7f2 |
r5d10806 |
|
| 54 | 54 | |
|---|
| 55 | 55 | #include "vlc_httpd.h" |
|---|
| | 56 | #include "../network/httpd.h" |
|---|
| 56 | 57 | #include "vlc_vlm.h" |
|---|
| 57 | 58 | #include "vlc_vod.h" |
|---|
| rbc73810 |
r5d10806 |
|
| 36 | 36 | #include <vlc_tls.h> |
|---|
| 37 | 37 | #include <vlc_acl.h> |
|---|
| | 38 | #include "httpd.h" |
|---|
| 38 | 39 | |
|---|
| 39 | 40 | #include <string.h> |
|---|