summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-05-14 18:53:47 +0100
committerRoss Burton <ross@linux.intel.com>2009-05-15 08:30:53 +0100
commita25d489d4d99e18c7232357ce93b3a5f5a7f599f (patch)
tree83e5233274e75c45ef0f65ff8c0cbf2bec0ecbfa
parent571b9ec668bd731c9f6adb4a98432fbf7f7c401b (diff)
downloadlibrest-a25d489d4d99e18c7232357ce93b3a5f5a7f599f.tar.gz
Document the RestProxy classes
-rw-r--r--rest/rest-proxy-call.h3
-rw-r--r--rest/rest-proxy.h13
2 files changed, 15 insertions, 1 deletions
diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h
index ac6a013..5373987 100644
--- a/rest/rest-proxy-call.h
+++ b/rest/rest-proxy-call.h
@@ -61,7 +61,8 @@ typedef struct {
* @prepare: Virtual function called before making the request, This allows the
* call to be modified, for example to add a signature.
*
- * Class structure for #RestProxyCall.
+ * Class structure for #RestProxyCall for subclasses to implement specialised
+ * behaviour.
*/
typedef struct {
/*< private >*/
diff --git a/rest/rest-proxy.h b/rest/rest-proxy.h
index d95da66..d19ab7a 100644
--- a/rest/rest-proxy.h
+++ b/rest/rest-proxy.h
@@ -54,6 +54,19 @@ typedef struct {
GObject parent;
} RestProxy;
+/**
+ * RestProxyClass:
+ *
+ * @bind_valist: Virtual function called to bind parameters.
+ * @new_call: Virtual function called to construct a new #RestProxyCall.
+ * @simple_run_valist: Virtual function called when making a "simple" call.
+ *
+ * Class structure for #RestProxy for subclasses to implement specialised
+ * behaviour.
+ *
+ * Typically subclasses will override @new_call to construct a subclass of
+ * #RestProxyCall.
+ */
typedef struct {
GObjectClass parent_class;
gboolean (*bind_valist)(RestProxy *proxy, va_list params);