[grilo/mocking] net: Use GRL_NET_CAPTURE_DIR instead of GRL_WEB_CAPTURE_DIR
- From: Mathias Hasselmann <hasselmm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/mocking] net: Use GRL_NET_CAPTURE_DIR instead of GRL_WEB_CAPTURE_DIR
- Date: Thu, 18 Oct 2012 22:06:20 +0000 (UTC)
commit c93720eb6df0f35d08341c53b604eaf4a17dd58a
Author: Mathias Hasselmann <mathias openismus com>
Date: Thu Oct 18 22:41:45 2012 +0200
net: Use GRL_NET_CAPTURE_DIR instead of GRL_WEB_CAPTURE_DIR
doc/grilo/plugins-testing.xml | 2 +-
libs/net/grl-net-private.c | 2 +-
libs/net/grl-net-private.h | 3 +++
3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/doc/grilo/plugins-testing.xml b/doc/grilo/plugins-testing.xml
index fb21052..0fa72e9 100644
--- a/doc/grilo/plugins-testing.xml
+++ b/doc/grilo/plugins-testing.xml
@@ -135,7 +135,7 @@ timeout = 500
<para>
An easy way to capture the responses is to run your application with the
- environment variable GRL_WEB_CAPTURE_DIR. GrlNetWc will then write all
+ environment variable GRL_NET_CAPTURE_DIR. GrlNetWc will then write all
each response into a file following the pattern "url-timestamp". If the
directory does not exist yet it will be created.
</para>
diff --git a/libs/net/grl-net-private.c b/libs/net/grl-net-private.c
index c3f5e3b..a0c788f 100644
--- a/libs/net/grl-net-private.c
+++ b/libs/net/grl-net-private.c
@@ -98,7 +98,7 @@ parse_error (guint status,
void
init_dump_directory ()
{
- capture_dir = g_getenv ("GRL_WEB_CAPTURE_DIR");
+ capture_dir = g_getenv (GRL_NET_CAPTURE_DIR_VAR);
if (capture_dir && g_mkdir_with_parents (capture_dir, 0700)) {
GRL_WARNING ("Could not create capture directory \"%s\": %s",
diff --git a/libs/net/grl-net-private.h b/libs/net/grl-net-private.h
index 5e1a9b4..bd5f411 100644
--- a/libs/net/grl-net-private.h
+++ b/libs/net/grl-net-private.h
@@ -36,6 +36,9 @@ G_BEGIN_DECLS
#define GRL_LOG_DOMAIN_DEFAULT wc_log_domain
GRL_LOG_DOMAIN_EXTERN(wc_log_domain);
+#define GRL_NET_CAPTURE_DIR_VAR "GRL_NET_CAPTURE_DIR"
+
+
struct _GrlNetWcPrivate {
SoupSession *session;
SoupLoggerLogLevel log_level;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]