Commit 753b61bd authored by Youness Alaoui's avatar Youness Alaoui

Add an else to HAVE_CONFIG_H in order to define NICEAPI_EXPORT. Also removed...

Add an else to HAVE_CONFIG_H in order to define NICEAPI_EXPORT. Also removed that define from not public functions and removed them from libnice.sym
parent bbefb854
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#else
#define NICEAPI_EXPORT
#endif #endif
#include <string.h> #include <string.h>
......
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#else
#define NICEAPI_EXPORT
#endif #endif
#include <glib.h> #include <glib.h>
......
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#else
#define NICEAPI_EXPORT
#endif #endif
#include <string.h> #include <string.h>
......
...@@ -32,18 +32,6 @@ nice_agent_set_remote_credentials ...@@ -32,18 +32,6 @@ nice_agent_set_remote_credentials
nice_agent_set_selected_pair nice_agent_set_selected_pair
nice_agent_set_selected_remote_candidate nice_agent_set_selected_remote_candidate
nice_candidate_free nice_candidate_free
nice_candidate_ice_priority
nice_candidate_ice_priority_full
nice_candidate_jingle_priority
nice_candidate_new nice_candidate_new
nice_candidate_pair_priority
nice_debug_disable nice_debug_disable
nice_debug_enable nice_debug_enable
nice_rng_free
nice_rng_generate_bytes
nice_rng_generate_bytes_print
nice_rng_generate_int
nice_rng_glib_new
nice_rng_glib_new_predictable
nice_rng_new
nice_rng_set_new_func
...@@ -81,7 +81,7 @@ rng_free (NiceRNG *rng) ...@@ -81,7 +81,7 @@ rng_free (NiceRNG *rng)
g_slice_free (NiceRNG, rng); g_slice_free (NiceRNG, rng);
} }
NICEAPI_EXPORT NiceRNG * NiceRNG *
nice_rng_glib_new (void) nice_rng_glib_new (void)
{ {
NiceRNG *ret; NiceRNG *ret;
...@@ -94,7 +94,7 @@ nice_rng_glib_new (void) ...@@ -94,7 +94,7 @@ nice_rng_glib_new (void)
return ret; return ret;
} }
NICEAPI_EXPORT NiceRNG * NiceRNG *
nice_rng_glib_new_predictable (void) nice_rng_glib_new_predictable (void)
{ {
NiceRNG *rng; NiceRNG *rng;
......
...@@ -49,7 +49,7 @@ static NiceRNG * (*nice_rng_new_func) (void) = NULL; ...@@ -49,7 +49,7 @@ static NiceRNG * (*nice_rng_new_func) (void) = NULL;
/** /**
* Creates a new random number generator instance. * Creates a new random number generator instance.
*/ */
NICEAPI_EXPORT NiceRNG * NiceRNG *
nice_rng_new (void) nice_rng_new (void)
{ {
if (nice_rng_new_func == NULL) if (nice_rng_new_func == NULL)
...@@ -61,7 +61,7 @@ nice_rng_new (void) ...@@ -61,7 +61,7 @@ nice_rng_new (void)
/** /**
* Sets a new generator function. * Sets a new generator function.
*/ */
NICEAPI_EXPORT void void
nice_rng_set_new_func (NiceRNG * (*func) (void)) nice_rng_set_new_func (NiceRNG * (*func) (void))
{ {
nice_rng_new_func = func; nice_rng_new_func = func;
...@@ -72,7 +72,7 @@ nice_rng_set_new_func (NiceRNG * (*func) (void)) ...@@ -72,7 +72,7 @@ nice_rng_set_new_func (NiceRNG * (*func) (void))
* *
* @param rng context * @param rng context
*/ */
NICEAPI_EXPORT void void
nice_rng_free (NiceRNG *rng) nice_rng_free (NiceRNG *rng)
{ {
rng->free (rng); rng->free (rng);
...@@ -85,7 +85,7 @@ nice_rng_free (NiceRNG *rng) ...@@ -85,7 +85,7 @@ nice_rng_free (NiceRNG *rng)
* @param len number of octets to product * @param len number of octets to product
* @param buf buffer to store the results * @param buf buffer to store the results
*/ */
NICEAPI_EXPORT void void
nice_rng_generate_bytes (NiceRNG *rng, guint len, gchar *buf) nice_rng_generate_bytes (NiceRNG *rng, guint len, gchar *buf)
{ {
rng->generate_bytes (rng, len, buf); rng->generate_bytes (rng, len, buf);
...@@ -98,7 +98,7 @@ nice_rng_generate_bytes (NiceRNG *rng, guint len, gchar *buf) ...@@ -98,7 +98,7 @@ nice_rng_generate_bytes (NiceRNG *rng, guint len, gchar *buf)
* @param low closed lower bound * @param low closed lower bound
* @param high open upper bound * @param high open upper bound
*/ */
NICEAPI_EXPORT guint guint
nice_rng_generate_int (NiceRNG *rng, guint low, guint high) nice_rng_generate_int (NiceRNG *rng, guint low, guint high)
{ {
return rng->generate_int (rng, low, high); return rng->generate_int (rng, low, high);
...@@ -115,7 +115,7 @@ nice_rng_generate_int (NiceRNG *rng, guint low, guint high) ...@@ -115,7 +115,7 @@ nice_rng_generate_int (NiceRNG *rng, guint low, guint high)
* @param len number of octets to product * @param len number of octets to product
* @param buf buffer to store the results * @param buf buffer to store the results
*/ */
NICEAPI_EXPORT void void
nice_rng_generate_bytes_print (NiceRNG *rng, guint len, gchar *buf) nice_rng_generate_bytes_print (NiceRNG *rng, guint len, gchar *buf)
{ {
guint i; guint i;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include "socket.h" #include "socket.h"
NICEAPI_EXPORT gint gint
nice_socket_recv ( nice_socket_recv (
NiceSocket *sock, NiceSocket *sock,
NiceAddress *from, NiceAddress *from,
...@@ -54,7 +54,7 @@ nice_socket_recv ( ...@@ -54,7 +54,7 @@ nice_socket_recv (
return sock->recv (sock, from, len, buf); return sock->recv (sock, from, len, buf);
} }
NICEAPI_EXPORT void void
nice_socket_send ( nice_socket_send (
NiceSocket *sock, NiceSocket *sock,
const NiceAddress *to, const NiceAddress *to,
...@@ -64,13 +64,13 @@ nice_socket_send ( ...@@ -64,13 +64,13 @@ nice_socket_send (
sock->send (sock, to, len, buf); sock->send (sock, to, len, buf);
} }
NICEAPI_EXPORT gboolean gboolean
nice_socket_is_reliable (NiceSocket *sock) nice_socket_is_reliable (NiceSocket *sock)
{ {
return sock->is_reliable (sock); return sock->is_reliable (sock);
} }
NICEAPI_EXPORT void void
nice_socket_free (NiceSocket *sock) nice_socket_free (NiceSocket *sock)
{ {
if (sock) { if (sock) {
......
...@@ -351,7 +351,7 @@ priv_add_channel_binding (turn_priv *priv, NiceAddress *peer) ...@@ -351,7 +351,7 @@ priv_add_channel_binding (turn_priv *priv, NiceAddress *peer)
return FALSE; return FALSE;
} }
NICEAPI_EXPORT gboolean gboolean
nice_udp_turn_socket_set_peer (NiceSocket *sock, NiceAddress *peer) nice_udp_turn_socket_set_peer (NiceSocket *sock, NiceAddress *peer)
{ {
turn_priv *priv = (turn_priv *) sock->priv; turn_priv *priv = (turn_priv *) sock->priv;
...@@ -699,7 +699,7 @@ socket_close (NiceSocket *sock) ...@@ -699,7 +699,7 @@ socket_close (NiceSocket *sock)
} }
NICEAPI_EXPORT NiceSocket * NiceSocket *
nice_udp_turn_socket_new ( nice_udp_turn_socket_new (
NiceAgent *agent, NiceAgent *agent,
NiceAddress *addr, NiceAddress *addr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment