tracker r1301 - branches/xesam-support/src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1301 - branches/xesam-support/src/trackerd
- Date: Thu, 24 Apr 2008 12:48:06 +0100 (BST)
Author: pvanhoof
Date: Thu Apr 24 11:48:06 2008
New Revision: 1301
URL: http://svn.gnome.org/viewvc/tracker?rev=1301&view=rev
Log:
Added some documentation and fixed some API
Modified:
branches/xesam-support/src/trackerd/tracker-xesam-search.c
branches/xesam-support/src/trackerd/tracker-xesam-session.c
branches/xesam-support/src/trackerd/tracker-xesam-session.h
Modified: branches/xesam-support/src/trackerd/tracker-xesam-search.c
==============================================================================
--- branches/xesam-support/src/trackerd/tracker-xesam-search.c (original)
+++ branches/xesam-support/src/trackerd/tracker-xesam-search.c Thu Apr 24 11:48:06 2008
@@ -205,7 +205,7 @@
TrackerXesamSession *session = tracker_xesam_get_session (session_id, error);
if (session) {
- tracker_xesam_session_set_property (session, prop, val, new_val);
+ tracker_xesam_session_set_property (session, prop, val, new_val, error);
g_object_unref (session);
}
@@ -226,7 +226,7 @@
if (session) {
gchar *ret = NULL;
- tracker_xesam_session_get_property (session, prop, &ret);
+ tracker_xesam_session_get_property (session, prop, &ret, error);
*value = g_strdup (ret);
g_free (ret);
}
Modified: branches/xesam-support/src/trackerd/tracker-xesam-session.c
==============================================================================
--- branches/xesam-support/src/trackerd/tracker-xesam-session.c (original)
+++ branches/xesam-support/src/trackerd/tracker-xesam-session.c Thu Apr 24 11:48:06 2008
@@ -120,6 +120,7 @@
* @new_val: (out) (caller-owns): The actual value the search engine will use.
* As noted above it is not guaranteed that the requested value will be
* respected
+ * @error: (null-ok) (out): a #GError
*
* Set a property on the session. It is not guaranteed that the session property
* will actually be used, the return value is the property value that will be
@@ -137,7 +138,7 @@
* is invalid.
**/
void
-tracker_xesam_session_set_property (TrackerXesamSession *self, const gchar *prop, const gchar *val, gchar **new_val)
+tracker_xesam_session_set_property (TrackerXesamSession *self, const gchar *prop, const gchar *val, gchar **new_val, GError **error)
{
g_return_if_fail (TRACKER_IS_SESSION (self));
if (new_val)
@@ -152,13 +153,14 @@
* @prop: The name or the property to set, see the list of session properties
* for valid property names at http://xesam.org/main/XesamSearchAPI#properties
* @value: (out) (caller-owns): The value of a session property
+ * @error: (null-ok) (out): a #GError
*
* Get the value of a session property. The server should throw an error if the
* session handle is closed or does not exist. An error should also be raised if
* prop is not a valid session property.
**/
void
-tracker_xesam_session_get_property (TrackerXesamSession *self, const gchar *prop, gchar **value)
+tracker_xesam_session_get_property (TrackerXesamSession *self, const gchar *prop, gchar **value, GError **error)
{
g_return_if_fail (TRACKER_IS_SESSION (self));
if (value)
Modified: branches/xesam-support/src/trackerd/tracker-xesam-session.h
==============================================================================
--- branches/xesam-support/src/trackerd/tracker-xesam-session.h (original)
+++ branches/xesam-support/src/trackerd/tracker-xesam-session.h Thu Apr 24 11:48:06 2008
@@ -53,8 +53,8 @@
GObjectClass parent_class;
};
-void tracker_xesam_session_set_property (TrackerXesamSession *self, const gchar *prop, const gchar *val, gchar **new_val);
-void tracker_xesam_session_get_property (TrackerXesamSession *self, const gchar *prop, gchar **value);
+void tracker_xesam_session_set_property (TrackerXesamSession *self, const gchar *prop, const gchar *val, gchar **new_val, GError **error);
+void tracker_xesam_session_get_property (TrackerXesamSession *self, const gchar *prop, gchar **value, GError **error);
TrackerXesamLiveSearch* tracker_xesam_session_create_search (TrackerXesamSession *self, const gchar *query_xml , gchar **search_id, GError **error);
TrackerXesamLiveSearch* tracker_xesam_session_get_search (TrackerXesamSession *self, const gchar *search_id, GError **error);
GList *tracker_xesam_session_get_searches (TrackerXesamSession *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]