summaryrefslogtreecommitdiff
path: root/pjlib/include/pj
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj')
-rw-r--r--pjlib/include/pj/guid.h10
-rw-r--r--pjlib/include/pj/pool.h9
2 files changed, 17 insertions, 2 deletions
diff --git a/pjlib/include/pj/guid.h b/pjlib/include/pj/guid.h
index 3eea11a3..a437646f 100644
--- a/pjlib/include/pj/guid.h
+++ b/pjlib/include/pj/guid.h
@@ -55,8 +55,16 @@ PJ_BEGIN_DECL
*
* Regardless of the actual length of the GUID, it will not exceed
* PJ_GUID_MAX_LENGTH characters.
+ *
+ * @see pj_GUID_STRING_LENGTH()
+ * @see PJ_GUID_MAX_LENGTH
+ */
+PJ_DECL_DATA(const unsigned) PJ_GUID_STRING_LENGTH;
+
+/**
+ * Get #PJ_GUID_STRING_LENGTH constant.
*/
-extern const unsigned PJ_GUID_STRING_LENGTH;
+PJ_DECL(unsigned) pj_GUID_STRING_LENGTH();
/**
* PJ_GUID_MAX_LENGTH specifies the maximum length of GUID string,
diff --git a/pjlib/include/pj/pool.h b/pjlib/include/pj/pool.h
index 5cb6aaf8..d12076fd 100644
--- a/pjlib/include/pj/pool.h
+++ b/pjlib/include/pj/pool.h
@@ -614,8 +614,15 @@ typedef struct pj_pool_factory_policy
/**
* This constant denotes the exception number that will be thrown by default
* memory factory policy when memory allocation fails.
+ *
+ * @see pj_NO_MEMORY_EXCEPTION()
*/
-extern int PJ_NO_MEMORY_EXCEPTION;
+PJ_DECL_DATA(int) PJ_NO_MEMORY_EXCEPTION;
+
+/**
+ * Get #PJ_NO_MEMORY_EXCEPTION constant.
+ */
+PJ_DECL(int) pj_NO_MEMORY_EXCEPTION();
/**
* This global variable points to default memory pool factory policy.