diff options
author | Youness Alaoui <kakaroto@kakaroto.(none)> | 2008-11-03 16:30:05 -0500 |
---|---|---|
committer | Youness Alaoui <kakaroto@kakaroto.(none)> | 2008-11-03 16:30:05 -0500 |
commit | 753b61bd6980cd6ac495c51f5d7c5b04a1aadedb (patch) | |
tree | 301e7eb7d5526d94d9f5579fdddcc4c1bed0c9f8 /random | |
parent | bbefb854c79fe7a6da74cc602ec01ca61b555a0e (diff) | |
download | libnice-753b61bd6980cd6ac495c51f5d7c5b04a1aadedb.tar.gz |
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
Diffstat (limited to 'random')
-rw-r--r-- | random/random-glib.c | 4 | ||||
-rw-r--r-- | random/random.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/random/random-glib.c b/random/random-glib.c index 2b3875d..5d4eee8 100644 --- a/random/random-glib.c +++ b/random/random-glib.c @@ -81,7 +81,7 @@ rng_free (NiceRNG *rng) g_slice_free (NiceRNG, rng); } -NICEAPI_EXPORT NiceRNG * +NiceRNG * nice_rng_glib_new (void) { NiceRNG *ret; @@ -94,7 +94,7 @@ nice_rng_glib_new (void) return ret; } -NICEAPI_EXPORT NiceRNG * +NiceRNG * nice_rng_glib_new_predictable (void) { NiceRNG *rng; diff --git a/random/random.c b/random/random.c index edf6bcf..6c9d29c 100644 --- a/random/random.c +++ b/random/random.c @@ -49,7 +49,7 @@ static NiceRNG * (*nice_rng_new_func) (void) = NULL; /** * Creates a new random number generator instance. */ -NICEAPI_EXPORT NiceRNG * +NiceRNG * nice_rng_new (void) { if (nice_rng_new_func == NULL) @@ -61,7 +61,7 @@ nice_rng_new (void) /** * Sets a new generator function. */ -NICEAPI_EXPORT void +void nice_rng_set_new_func (NiceRNG * (*func) (void)) { nice_rng_new_func = func; @@ -72,7 +72,7 @@ nice_rng_set_new_func (NiceRNG * (*func) (void)) * * @param rng context */ -NICEAPI_EXPORT void +void nice_rng_free (NiceRNG *rng) { rng->free (rng); @@ -85,7 +85,7 @@ nice_rng_free (NiceRNG *rng) * @param len number of octets to product * @param buf buffer to store the results */ -NICEAPI_EXPORT void +void nice_rng_generate_bytes (NiceRNG *rng, guint len, gchar *buf) { rng->generate_bytes (rng, len, buf); @@ -98,7 +98,7 @@ nice_rng_generate_bytes (NiceRNG *rng, guint len, gchar *buf) * @param low closed lower bound * @param high open upper bound */ -NICEAPI_EXPORT guint +guint nice_rng_generate_int (NiceRNG *rng, guint low, guint high) { return rng->generate_int (rng, low, high); @@ -115,7 +115,7 @@ nice_rng_generate_int (NiceRNG *rng, guint low, guint high) * @param len number of octets to product * @param buf buffer to store the results */ -NICEAPI_EXPORT void +void nice_rng_generate_bytes_print (NiceRNG *rng, guint len, gchar *buf) { guint i; |