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
belle-sip
Commits
79d42150
Commit
79d42150
authored
Apr 23, 2013
by
Ghislain MARY
Browse files
Remove useless function declarations and fix warning message to point to the good function.
parent
134a8017
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
include/belle-sip/object.h
include/belle-sip/object.h
+4
-0
include/belle-sip/sipstack.h
include/belle-sip/sipstack.h
+0
-4
src/belle_sip_object.c
src/belle_sip_object.c
+1
-1
No files found.
include/belle-sip/object.h
View file @
79d42150
...
...
@@ -312,6 +312,8 @@ typedef struct belle_sip_interface_desc{
**/
typedef
struct
belle_sip_object_pool
belle_sip_object_pool_t
;
BELLE_SIP_BEGIN_DECLS
/**
* Push a new object pool for use for creation of new objects.
* When no longer needed, this pool can be destroyed with belle_sip_object_unref().
...
...
@@ -322,5 +324,7 @@ belle_sip_object_pool_t * belle_sip_object_pool_get_current();
int
belle_sip_object_pool_cleanable
(
belle_sip_object_pool_t
*
pool
);
void
belle_sip_object_pool_clean
(
belle_sip_object_pool_t
*
obj
);
BELLE_SIP_END_DECLS
#endif
include/belle-sip/sipstack.h
View file @
79d42150
...
...
@@ -97,10 +97,6 @@ BELLESIP_EXPORT void belle_sip_stack_set_default_dscp(belle_sip_stack_t *stack,
**/
BELLESIP_EXPORT
int
belle_sip_stack_get_default_dscp
(
belle_sip_stack_t
*
stack
);
BELLESIP_EXPORT
void
belle_sip_stack_push_pool
(
belle_sip_stack_t
*
stack
);
BELLESIP_EXPORT
void
belle_sip_stack_pop_pool
(
belle_sip_stack_t
*
stack
);
BELLE_SIP_END_DECLS
#endif
...
...
src/belle_sip_object.c
View file @
79d42150
...
...
@@ -509,7 +509,7 @@ belle_sip_object_pool_t *belle_sip_object_pool_get_current(void){
if
(
*
pools
==
NULL
){
if
(
first_time
)
{
belle_sip_warning
(
"There is no object pool created in thread [%ul]. "
"Use belle_sip_
stack_push_pool
() to create one. Unowned objects not unref'd will be leaked."
,
"Use belle_sip_
object_pool_push
() to create one. Unowned objects not unref'd will be leaked."
,
(
unsigned
long
)
belle_sip_thread_self
());
}
return
NULL
;
...
...
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