[grilo] core: Add definition for unknown remaining



commit 1d6f636d938704552369ddccc1698f00e7dc1f51
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Wed Jan 19 11:26:20 2011 +0000

    core: Add definition for unknown remaining
    
    Define GRL_SOURCE_REMAINING_UNKNOWN to check if remaining is known or not.
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>

 src/grl-definitions.h  |    4 ++++
 src/grl-media-source.h |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-definitions.h b/src/grl-definitions.h
index e1fb67e..7ca2899 100644
--- a/src/grl-definitions.h
+++ b/src/grl-definitions.h
@@ -38,4 +38,8 @@
 /* Value used when childcount is unknown */
 #define GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN -1
 
+/* Used to know if plugin can not tell how many elements
+   remain to be sent */
+#define GRL_SOURCE_REMAINING_UNKNOWN -1
+
 #endif
diff --git a/src/grl-media-source.h b/src/grl-media-source.h
index 2e77602..ab37163 100644
--- a/src/grl-media-source.h
+++ b/src/grl-media-source.h
@@ -86,7 +86,8 @@ struct _GrlMediaSource {
  * @source: a media source
  * @operation_id: operation identifier
  * @media: (transfer full): a data transfer object
- * @remaining: the number of remaining #GrlMedia to process, or -1 if it is unknown
+ * @remaining: the number of remaining #GrlMedia to process, or
+ * GRL_SOURCE_REMAINING_UNKNOWN if it is unknown
  * @user_data: user data passed to the used method
  * @error: (not-error) (type uint): possible #GError generated at processing
  *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]