summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call-private.h
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-04-08 10:45:27 +0100
committerRoss Burton <ross@linux.intel.com>2009-04-08 10:48:26 +0100
commit24b1f2471eec3764c66c038627c2a22921b997b5 (patch)
tree1357098546b5feca70b9b9487aa064e0a843c564 /rest/rest-proxy-call-private.h
parent912b4adada2c5e649a48b77eaa91f1ef73a4fc07 (diff)
downloadlibrest-24b1f2471eec3764c66c038627c2a22921b997b5.tar.gz
Split the RestProxyCall private struct into a separate header for subclasses
Diffstat (limited to 'rest/rest-proxy-call-private.h')
-rw-r--r--rest/rest-proxy-call-private.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/rest/rest-proxy-call-private.h b/rest/rest-proxy-call-private.h
new file mode 100644
index 0000000..0099830
--- /dev/null
+++ b/rest/rest-proxy-call-private.h
@@ -0,0 +1,52 @@
+/*
+ * librest - RESTful web services access
+ * Copyright (c) 2008, 2009, Intel Corporation.
+ *
+ * Authors: Rob Bradford <rob@linux.intel.com>
+ * Ross Burton <ross@linux.intel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU Lesser General Public License,
+ * version 2.1, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+#ifndef _REST_PROXY_CALL_PRIVATE
+#define _REST_PROXY_CALL_PRIVATE
+
+#include <rest/rest-proxy.h>
+#include <rest/rest-proxy-call.h>
+
+G_BEGIN_DECLS
+
+typedef struct _RestProxyCallAsyncClosure RestProxyCallAsyncClosure;
+
+struct _RestProxyCallPrivate {
+ gchar *method;
+ gchar *function;
+ GHashTable *headers;
+ GHashTable *params;
+
+ GHashTable *response_headers;
+ goffset length;
+ gchar *payload;
+ guint status_code;
+ gchar *status_message;
+
+ RestProxy *proxy;
+
+ RestProxyCallAsyncClosure *cur_call_closure;
+};
+
+G_END_DECLS
+
+#endif /* _REST_PROXY_CALL_PRIVATE */