Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
000ced41
Commit
000ced41
authored
Mar 22, 2013
by
jehan
Browse files
add local ip to upnp context create
parent
dc277cd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/mediastreamer2/upnp_igd.h
include/mediastreamer2/upnp_igd.h
+1
-1
src/upnp/upnp_igd.c
src/upnp/upnp_igd.c
+2
-2
No files found.
include/mediastreamer2/upnp_igd.h
View file @
000ced41
...
...
@@ -53,7 +53,7 @@ typedef void (*upnp_igd_print_function)(void *cookie, upnp_igd_print_level level
typedef
struct
_upnp_igd_context
upnp_igd_context
;
MS2_PUBLIC
upnp_igd_context
*
upnp_igd_create
(
upnp_igd_callback_function
cb_fct
,
upnp_igd_print_function
print_fct
,
void
*
cookie
);
MS2_PUBLIC
upnp_igd_context
*
upnp_igd_create
(
upnp_igd_callback_function
cb_fct
,
upnp_igd_print_function
print_fct
,
const
char
*
address
,
void
*
cookie
);
MS2_PUBLIC
int
upnp_igd_start
(
upnp_igd_context
*
igd_ctxt
);
int
upnp_igd_is_started
(
upnp_igd_context
*
igd_ctxt
);
int
upnp_igd_stop
(
upnp_igd_context
*
igd_ctxt
);
...
...
src/upnp/upnp_igd.c
View file @
000ced41
...
...
@@ -955,10 +955,10 @@ int upnp_igd_callback(Upnp_EventType event_type, void* event, void *cookie) {
* cookie -- The cookie pass in cb_fct or print_fct
*
********************************************************************************/
upnp_igd_context
*
upnp_igd_create
(
upnp_igd_callback_function
cb_fct
,
upnp_igd_print_function
print_fct
,
void
*
cookie
)
{
upnp_igd_context
*
upnp_igd_create
(
upnp_igd_callback_function
cb_fct
,
upnp_igd_print_function
print_fct
,
const
char
*
address
,
void
*
cookie
)
{
int
ret
;
unsigned
short
port
=
0
;
const
char
*
ip_address
=
NULL
;
const
char
*
ip_address
=
address
;
upnp_igd_context
*
igd_ctxt
=
(
upnp_igd_context
*
)
malloc
(
sizeof
(
upnp_igd_context
));
igd_ctxt
->
devices
=
NULL
;
igd_ctxt
->
callback_fct
=
cb_fct
;
...
...
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