aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/str_util.h
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-02-28 14:09:46 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-02-28 14:09:46 +0000
commit45c2884f1bbd9c06f7ba3091d968fcb6649a5f56 (patch)
treebb66eea36a288f1ab5e33468ee9bf2989339b2aa /wsutil/str_util.h
parent018ba4ea6584f63aa5c4b741c2e6f6fedc609ad2 (diff)
Export libwsutil symbols using WS_DLL_PUBLIC define
This change replaces *.def and *.sym file usage following the guideline at http://gcc.gnu.org/wiki/Visibility svn path=/trunk/; revision=47938
Diffstat (limited to 'wsutil/str_util.h')
-rw-r--r--wsutil/str_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wsutil/str_util.h b/wsutil/str_util.h
index 120fc00820..3762009ef7 100644
--- a/wsutil/str_util.h
+++ b/wsutil/str_util.h
@@ -25,6 +25,8 @@
#ifndef __STR_UTIL_H__
#define __STR_UTIL_H__
+#include "ws_symbol_export.h"
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -44,6 +46,7 @@ extern "C" {
* @param str The string to be lower-cased.
* @return ptr to the string
*/
+WS_DLL_PUBLIC
gchar *ascii_strdown_inplace(gchar *str);
/** Convert all lower-case ASCII letters to their ASCII upper-case
@@ -61,6 +64,7 @@ gchar *ascii_strdown_inplace(gchar *str);
* @param str The string to be upper-cased.
* @return ptr to the string
*/
+WS_DLL_PUBLIC
gchar *ascii_strup_inplace(gchar *str);
/** Check if an entire string consists of printable characters
@@ -68,6 +72,7 @@ gchar *ascii_strup_inplace(gchar *str);
* @param str The string to be checked
* @return TRUE if the entire string is printable, otherwise FALSE
*/
+WS_DLL_PUBLIC
gboolean isprint_string(const gchar *string);
/** Check if an entire string consists of digits
@@ -75,6 +80,7 @@ gboolean isprint_string(const gchar *string);
* @param str The string to be checked
* @return TRUE if the entire string is digits, otherwise FALSE
*/
+WS_DLL_PUBLIC
gboolean isdigit_string(guchar *string);
typedef enum {
@@ -102,6 +108,7 @@ extern format_size_flags_e operator|(format_size_flags_e lhs, format_size_flags_
* SI vs IEC, etc). Unit and prefix flags may be ORed together.
* @return A newly-allocated string representing the value.
*/
+WS_DLL_PUBLIC
gchar *format_size(gint64 size, format_size_flags_e flags);