Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
cpp-libs
libnice
Commits
5ea30721
Commit
5ea30721
authored
Sep 17, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export the nice_debug_en/disable API and add a boolean to access the stun debug
parent
8182fb8c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
agent/Makefile.am
agent/Makefile.am
+1
-1
agent/agent.h
agent/agent.h
+1
-0
agent/debug.c
agent/debug.c
+8
-3
agent/debug.h
agent/debug.h
+4
-2
nice/libnice.sym
nice/libnice.sym
+2
-0
No files found.
agent/Makefile.am
View file @
5ea30721
...
...
@@ -102,7 +102,7 @@ test_fallback_LDADD = $(COMMON_LDADD)
test_thread_LDADD
=
$(COMMON_LDADD)
pkginclude_HEADERS
=
agent.h candidate.h
pkginclude_HEADERS
=
agent.h candidate.h
debug.h
all-local
:
chmod
a+x
$(srcdir)
/check-test-fullmode-with-stun.sh
agent/agent.h
View file @
5ea30721
...
...
@@ -45,6 +45,7 @@
#include "address.h"
#include "candidate.h"
#include "random.h"
#include "debug.h"
G_BEGIN_DECLS
...
...
agent/debug.c
View file @
5ea30721
...
...
@@ -39,15 +39,20 @@
#include "debug.h"
#include <glib.h>
#include "stunagent.h"
static
int
debug_enabled
=
1
;
void
nice_debug_enable
(
void
)
{
void
nice_debug_enable
(
gboolean
with_stun
)
{
debug_enabled
=
1
;
if
(
with_stun
)
stun_debug_enable
();
}
void
nice_debug_disable
(
void
)
{
void
nice_debug_disable
(
gboolean
with_stun
)
{
debug_enabled
=
0
;
if
(
with_stun
)
stun_debug_disable
();
}
void
nice_debug
(
const
char
*
fmt
,
...)
...
...
agent/debug.h
View file @
5ea30721
...
...
@@ -36,8 +36,10 @@
#ifndef _DEBUG_H
#define _DEBUG_H
void
nice_debug_enable
(
void
);
void
nice_debug_disable
(
void
);
#include <glib.h>
void
nice_debug_enable
(
gboolean
with_stun
);
void
nice_debug_disable
(
gboolean
with_stun
);
void
nice_debug
(
const
char
*
fmt
,
...);
#endif
/* _DEBUG_H */
...
...
nice/libnice.sym
View file @
5ea30721
...
...
@@ -39,6 +39,8 @@ nice_candidate_ice_priority_full
nice_candidate_jingle_priority
nice_candidate_new
nice_candidate_pair_priority
nice_debug_enable
nice_debug_disable
nice_interface_free
nice_interface_new
nice_list_local_interfaces
...
...
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