aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-client')
-rw-r--r--calendar/cal-client/cal-client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c
index 90b4dcdbed..1e0a0561d5 100644
--- a/calendar/cal-client/cal-client.c
+++ b/calendar/cal-client/cal-client.c
@@ -550,6 +550,16 @@ cal_client_create_calendar (CalClient *client, const char *str_uri)
return load_or_create (client, str_uri, FALSE);
}
+/**
+ * cal_client_get_n_objects:
+ * @client: A calendar client.
+ * @type: Type of objects that will be counted.
+ *
+ * Counts the number of calendar components of the specified @type. This can be
+ * used to count how many events, to-dos, or journals there are, for example.
+ *
+ * Return value: Number of components.
+ **/
int
cal_client_get_n_objects (CalClient *client, CalObjType type)
{