Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
29ec3042
Commit
29ec3042
authored
Dec 08, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Guard headerfiles in modules/access/mms/*.h against multiple inclusions.
parent
5de91b63
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
17 deletions
+36
-17
modules/access/mms/asf.h
modules/access/mms/asf.h
+5
-2
modules/access/mms/buffer.h
modules/access/mms/buffer.h
+4
-1
modules/access/mms/mms.h
modules/access/mms/mms.h
+6
-1
modules/access/mms/mmsh.h
modules/access/mms/mmsh.h
+5
-0
modules/access/mms/mmstu.h
modules/access/mms/mmstu.h
+16
-13
No files found.
modules/access/mms/asf.h
View file @
29ec3042
...
...
@@ -28,6 +28,9 @@
*
****************************************************************************/
#ifndef _ASF_H_
#define _ASF_H_ 1
#define ASF_STREAM_VIDEO 0x0001
#define ASF_STREAM_AUDIO 0x0002
#define ASF_STREAM_UNKNOWN 0xffff
...
...
@@ -49,7 +52,6 @@ typedef struct
}
asf_header_t
;
typedef
struct
guid_s
{
uint32_t
v1
;
/* le */
...
...
@@ -65,7 +67,6 @@ void E_( asf_StreamSelect ) ( asf_header_t *,
int
i_bitrate_max
,
vlc_bool_t
b_all
,
vlc_bool_t
b_audio
,
vlc_bool_t
b_video
);
#define GUID_FMT "%8.8x-%4.4x-%4.4x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
#define GUID_PRINT( guid ) \
(guid).v1, \
...
...
@@ -145,3 +146,5 @@ static const guid_t asf_object_header_extension_guid =
0x11CF
,
{
0x8E
,
0xE3
,
0x00
,
0xC0
,
0x0C
,
0x20
,
0x53
,
0x65
}
};
#endif
modules/access/mms/buffer.h
View file @
29ec3042
...
...
@@ -21,6 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef _MMS_BUFFER_H_
#define _MMS_BUFFER_H_ 1
typedef
struct
{
uint8_t
*
p_data
;
// pointer on data
...
...
@@ -30,7 +33,6 @@ typedef struct
int
i_size
;
// size of p_data memory allocated
}
var_buffer_t
;
/*****************************************************************************
* Macro/Function to create/manipulate buffer
*****************************************************************************/
...
...
@@ -54,3 +56,4 @@ int var_buffer_getmemory ( var_buffer_t *p_buf, void *p_mem, int64_t i_mem
int
var_buffer_readempty
(
var_buffer_t
*
p_buf
);
void
var_buffer_getguid
(
var_buffer_t
*
p_buf
,
guid_t
*
p_guid
);
#endif
modules/access/mms/mms.h
View file @
29ec3042
...
...
@@ -21,12 +21,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef _MMS_H_
#define _MMS_H_ 1
#define MMS_PROTO_AUTO 0
#define MMS_PROTO_TCP 1
#define MMS_PROTO_UDP 2
#define MMS_PROTO_HTTP 3
/* mmst and mmsu */
int
E_
(
MMSTUOpen
)
(
access_t
*
);
void
E_
(
MMSTUClose
)
(
access_t
*
);
...
...
@@ -34,3 +36,6 @@ void E_( MMSTUClose ) ( access_t * );
/* mmsh */
int
E_
(
MMSHOpen
)
(
access_t
*
);
void
E_
(
MMSHClose
)
(
access_t
*
);
#endif
modules/access/mms/mmsh.h
View file @
29ec3042
...
...
@@ -21,6 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef _MMSH_H_
#define _MMSH_H_ 1
typedef
struct
{
uint16_t
i_type
;
...
...
@@ -66,3 +69,5 @@ struct access_sys_t
asf_header_t
asfh
;
guid_t
guid
;
};
#endif
modules/access/mms/mmstu.h
View file @
29ec3042
...
...
@@ -21,34 +21,36 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef _MMSTU_H_
#define _MMSTU_H_ 1
#define MMS_PACKET_ANY 0
#define MMS_PACKET_CMD 1
#define MMS_PACKET_HEADER 2
#define MMS_PACKET_MEDIA 3
#define MMS_PACKET_UDP_TIMING 4
#define MMS_CMD_HEADERSIZE 48
#define MMS_BUFFER_SIZE 100000
struct
access_sys_t
{
int
i_proto
;
/* MMS_PROTO_TCP, MMS_PROTO_UDP */
int
i_handle_tcp
;
/* TCP socket for communication with server */
int
i_handle_udp
;
/* Optional UDP socket for data(media/header packet) */
/* send by server */
char
sz_bind_addr
[
NI_MAXNUMERICHOST
];
/* used by udp */
int
i_proto
;
/* MMS_PROTO_TCP, MMS_PROTO_UDP */
int
i_handle_tcp
;
/* TCP socket for communication with server */
int
i_handle_udp
;
/* Optional UDP socket for data(media/header packet) */
/* send by server */
char
sz_bind_addr
[
NI_MAXNUMERICHOST
];
/* used by udp */
vlc_url_t
url
;
vlc_url_t
url
;
asf_header_t
asfh
;
asf_header_t
asfh
;
/* */
uint8_t
buffer_tcp
[
MMS_BUFFER_SIZE
];
int
i_buffer_tcp
;
uint8_t
buffer_tcp
[
MMS_BUFFER_SIZE
];
int
i_buffer_tcp
;
uint8_t
buffer_udp
[
MMS_BUFFER_SIZE
];
int
i_buffer_udp
;
uint8_t
buffer_udp
[
MMS_BUFFER_SIZE
];
int
i_buffer_udp
;
/* data necessary to send data to server */
guid_t
guid
;
...
...
@@ -86,7 +88,8 @@ struct access_sys_t
int
i_max_bit_rate
;
int
i_header_size
;
/* */
/*
misc
*/
vlc_bool_t
b_seekable
;
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment