beagle r4667 - trunk/libbeagle/beagle
- From: arunsr svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4667 - trunk/libbeagle/beagle
- Date: Mon, 7 Apr 2008 09:38:09 +0100 (BST)
Author: arunsr
Date: Mon Apr 7 09:38:08 2008
New Revision: 4667
URL: http://svn.gnome.org/viewvc/beagle?rev=4667&view=rev
Log:
Manually initialise all our private data
While glib currently does this for us, it is not something that is documented
(and thus, cannot be relied on).
Modified:
trunk/libbeagle/beagle/beagle-error-response.c
trunk/libbeagle/beagle/beagle-hits-added-response.c
trunk/libbeagle/beagle/beagle-hits-subtracted-response.c
trunk/libbeagle/beagle/beagle-indexing-service-request.c
trunk/libbeagle/beagle/beagle-indexing-status-response.c
trunk/libbeagle/beagle/beagle-query-part-date.c
trunk/libbeagle/beagle/beagle-query-part-human.c
trunk/libbeagle/beagle/beagle-query-part-or.c
trunk/libbeagle/beagle/beagle-query-part-property.c
trunk/libbeagle/beagle/beagle-query-part-text.c
trunk/libbeagle/beagle/beagle-query-part-uri.c
trunk/libbeagle/beagle/beagle-query-part-wildcard.c
trunk/libbeagle/beagle/beagle-query-part.c
trunk/libbeagle/beagle/beagle-query.c
trunk/libbeagle/beagle/beagle-snippet-request.c
Modified: trunk/libbeagle/beagle/beagle-error-response.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-error-response.c (original)
+++ trunk/libbeagle/beagle/beagle-error-response.c Mon Apr 7 09:38:08 2008
@@ -114,6 +114,9 @@
static void
beagle_error_response_init (BeagleErrorResponse *response)
{
+ BeagleErrorResponsePrivate *priv = BEAGLE_ERROR_RESPONSE_GET_PRIVATE (response);
+ priv->message = NULL;
+ priv->details = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-hits-added-response.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-hits-added-response.c (original)
+++ trunk/libbeagle/beagle/beagle-hits-added-response.c Mon Apr 7 09:38:08 2008
@@ -223,7 +223,12 @@
static void
beagle_hits_added_response_init (BeagleHitsAddedResponse *response)
{
-}
+ BeagleHitsAddedResponsePrivate *priv = BEAGLE_HITS_ADDED_RESPONSE_GET_PRIVATE (response);
+ priv->hit = NULL;
+ priv->prop = NULL;
+ priv->hits = NULL;
+ priv->num_matches = 0;
+}
/**
* beagle_hits_added_response_get_hits:
Modified: trunk/libbeagle/beagle/beagle-hits-subtracted-response.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-hits-subtracted-response.c (original)
+++ trunk/libbeagle/beagle/beagle-hits-subtracted-response.c Mon Apr 7 09:38:08 2008
@@ -101,7 +101,9 @@
static void
beagle_hits_subtracted_response_init (BeagleHitsSubtractedResponse *response)
{
-}
+ BeagleHitsSubtractedResponsePrivate *priv = BEAGLE_HITS_SUBTRACTED_RESPONSE_GET_PRIVATE (response);
+ priv->uris = NULL;
+}
/**
* beagle_hits_subtracted_response_get_uris:
Modified: trunk/libbeagle/beagle/beagle-indexing-service-request.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-indexing-service-request.c (original)
+++ trunk/libbeagle/beagle/beagle-indexing-service-request.c Mon Apr 7 09:38:08 2008
@@ -123,6 +123,10 @@
static void
beagle_indexing_service_request_init (BeagleIndexingServiceRequest *indexing_service_request)
{
+ BeagleIndexingServiceRequestPrivate *priv = BEAGLE_INDEXING_SERVICE_REQUEST_GET_PRIVATE (indexing_service_request);
+ priv->source = NULL;
+ priv->to_add = NULL;
+ priv->to_remove = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-indexing-status-response.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-indexing-status-response.c (original)
+++ trunk/libbeagle/beagle/beagle-indexing-status-response.c Mon Apr 7 09:38:08 2008
@@ -92,7 +92,9 @@
static void
beagle_indexing_status_response_init (BeagleIndexingStatusResponse *response)
{
-}
+ BeagleIndexingStatusResponsePrivate *priv = BEAGLE_INDEXING_STATUS_RESPONSE_GET_PRIVATE (response);
+ priv->is_indexing = FALSE;
+}
/**
* beagle_indexing_status_response_is_indexing
Modified: trunk/libbeagle/beagle/beagle-query-part-date.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-date.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-date.c Mon Apr 7 09:38:08 2008
@@ -96,7 +96,9 @@
static void
beagle_query_part_date_init (BeagleQueryPartDate *part)
{
-
+ BeagleQueryPartDatePrivate *priv = BEAGLE_QUERY_PART_DATE_GET_PRIVATE (part);
+ priv->start_date = NULL;
+ priv->end_date = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part-human.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-human.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-human.c Mon Apr 7 09:38:08 2008
@@ -89,7 +89,8 @@
static void
beagle_query_part_human_init (BeagleQueryPartHuman *part)
{
-
+ BeagleQueryPartHumanPrivate *priv = BEAGLE_QUERY_PART_HUMAN_GET_PRIVATE (part);
+ priv->string = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part-or.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-or.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-or.c Mon Apr 7 09:38:08 2008
@@ -100,7 +100,8 @@
static void
beagle_query_part_or_init (BeagleQueryPartOr *part)
{
-
+ BeagleQueryPartOrPrivate *priv = BEAGLE_QUERY_PART_OR_GET_PRIVATE (part);
+ priv->subparts = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part-property.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-property.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-property.c Mon Apr 7 09:38:08 2008
@@ -106,6 +106,10 @@
static void
beagle_query_part_property_init (BeagleQueryPartProperty *part)
{
+ BeagleQueryPartPropertyPrivate *priv = BEAGLE_QUERY_PART_PROPERTY_GET_PRIVATE (part);
+ priv->key = NULL;
+ priv->value = NULL;
+ priv->prop_type = BEAGLE_PROPERTY_TYPE_UNKNOWN;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part-text.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-text.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-text.c Mon Apr 7 09:38:08 2008
@@ -101,7 +101,10 @@
static void
beagle_query_part_text_init (BeagleQueryPartText *part)
{
-
+ BeagleQueryPartTextPrivate *priv = BEAGLE_QUERY_PART_TEXT_GET_PRIVATE (part);
+ priv->text = NULL;
+ priv->search_full_text = FALSE;
+ priv->search_properties = FALSE;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part-uri.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-uri.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-uri.c Mon Apr 7 09:38:08 2008
@@ -89,7 +89,8 @@
static void
beagle_query_part_uri_init (BeagleQueryPartUri *part)
{
-
+ BeagleQueryPartUriPrivate *priv = BEAGLE_QUERY_PART_URI_GET_PRIVATE (part);
+ priv->uri = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part-wildcard.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part-wildcard.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part-wildcard.c Mon Apr 7 09:38:08 2008
@@ -89,6 +89,8 @@
static void
beagle_query_part_wildcard_init (BeagleQueryPartWildcard *part)
{
+ BeagleQueryPartWildcardPrivate *priv = BEAGLE_QUERY_PART_WILDCARD_GET_PRIVATE (part);
+ priv->query_string = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query-part.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query-part.c (original)
+++ trunk/libbeagle/beagle/beagle-query-part.c Mon Apr 7 09:38:08 2008
@@ -66,7 +66,8 @@
static void
beagle_query_part_init (BeagleQueryPart *part)
{
-
+ BeagleQueryPartPrivate *priv = BEAGLE_QUERY_PART_GET_PRIVATE (part);
+ priv->logic = 0;
}
/**
Modified: trunk/libbeagle/beagle/beagle-query.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-query.c (original)
+++ trunk/libbeagle/beagle/beagle-query.c Mon Apr 7 09:38:08 2008
@@ -239,6 +239,10 @@
/* FIXME: This is a good default when on an airplane. */
priv->domain = BEAGLE_QUERY_DOMAIN_LOCAL | BEAGLE_QUERY_DOMAIN_SYSTEM;
+
+ priv->parts = NULL;
+ priv->stemmed_text = NULL;
+ priv->exact_text = NULL;
}
/**
Modified: trunk/libbeagle/beagle/beagle-snippet-request.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-snippet-request.c (original)
+++ trunk/libbeagle/beagle/beagle-snippet-request.c Mon Apr 7 09:38:08 2008
@@ -127,6 +127,8 @@
g_return_if_fail (BEAGLE_IS_SNIPPET_REQUEST (snippet_request));
priv = BEAGLE_SNIPPET_REQUEST_GET_PRIVATE (snippet_request);
+ priv->query = NULL;
+ priv->hit = NULL;
priv->set_full_text = FALSE;
priv->ctx_length = -1;
priv->snp_length = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]