summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2011-11-02 10:55:58 +0000
committerdominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2011-11-02 10:55:58 +0000
commit6d5af5c61e07b1616336e1a6ed82414c40aad583 (patch)
tree3ac829ba0f5129b91a23919dedf48b0b69239f1e
parent3c93e5094008a6211c6e9710b27293c08c496f1e (diff)
downloadlibproxy-6d5af5c61e07b1616336e1a6ed82414c40aad583.tar.gz
build system: Pass a real value to _POSIX_C_SOURCE. Fixes issue#160
git-svn-id: http://libproxy.googlecode.com/svn/trunk@824 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r--libproxy/CMakeLists.txt2
-rw-r--r--libproxy/proxy.h11
2 files changed, 9 insertions, 4 deletions
diff --git a/libproxy/CMakeLists.txt b/libproxy/CMakeLists.txt
index 412a1d6..6bfb187 100644
--- a/libproxy/CMakeLists.txt
+++ b/libproxy/CMakeLists.txt
@@ -6,7 +6,7 @@ set_project_version(0 4 7)
if (WIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
else(WIN32)
- add_definitions(-D_POSIX_C_SOURCE=1)
+ add_definitions(-D_POSIX_C_SOURCE=200112L)
set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")
endif(WIN32)
diff --git a/libproxy/proxy.h b/libproxy/proxy.h
index fb8275b..9da81fa 100644
--- a/libproxy/proxy.h
+++ b/libproxy/proxy.h
@@ -28,16 +28,20 @@ extern "C"
typedef struct pxProxyFactory_ pxProxyFactory;
/**
+ * px_proxy_factory_new:
+ *
* Creates a new pxProxyFactory instance. This instance should be kept
* around as long as possible as it contains cached data to increase
* performance. Memory usage should be minimal (cache is small) and the
* cache lifespan is handled automatically.
*
- * @return A new pxProxyFactory instance or NULL on error
+ * @returns: (transfer none): A new pxProxyFactory instance or NULL on error
*/
pxProxyFactory *px_proxy_factory_new(void);
/**
+ * px_proxy_factory_get_proxies:
+ *
* Get which proxies to use for the specified URL.
*
* A NULL-terminated array of proxy strings is returned.
@@ -85,8 +89,9 @@ pxProxyFactory *px_proxy_factory_new(void);
* RTSP streaming proxy. The expected returned configuration would be:
* - rtsp://[username:password@]proxy:port
*
- * @url The URL we are trying to reach
- * @return A NULL-terminated array of proxy strings to use
+ * @self: a Pointed to the ProxyFactory structure
+ * @url: The URL we are trying to reach
+ * Returns: (transfer full): A NULL-terminated array of proxy strings to use
*/
char **px_proxy_factory_get_proxies(pxProxyFactory *self, const char *url);