[gupnp-av] Adding support for Link protection related DLNAFlags



commit 484ea81eeb506853a6ed67df1e84143bcb5b863c
Author: Parthiban Balasubramanian <p balasubramanian cablelabs com>
Date:   Fri Aug 16 05:42:01 2013 -0600

    Adding support for Link protection related DLNAFlags
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706926

 libgupnp-av/gupnp-dlna.c |    9 +++++++++
 libgupnp-av/gupnp-dlna.h |   12 +++++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp-av/gupnp-dlna.c b/libgupnp-av/gupnp-dlna.c
index 97ff080..d68991d 100644
--- a/libgupnp-av/gupnp-dlna.c
+++ b/libgupnp-av/gupnp-dlna.c
@@ -119,6 +119,15 @@ gupnp_dlna_flags_get_type (void)
                         { GUPNP_DLNA_FLAGS_DLNA_V15,
                           "GUPNP_DLNA_FLAGS_DLNA_V15",
                           "dlna-v15" },
+                        { GUPNP_DLNA_FLAGS_LINK_PROTECTED_CONTENT,
+                          "GUPNP_DLNA_FLAGS_LINK_PROTECTED_CONTENT",
+                          "link-protected-content" },
+                        { GUPNP_DLNA_FLAGS_CLEAR_TEXT_BYTE_SEEK_FULL,
+                          "GUPNP_DLNA_FLAGS_CLEAR_TEXT_BYTE_SEEK_FULL",
+                          "cleartext-byteseek-full" },
+                        { GUPNP_DLNA_FLAGS_LOP_CLEAR_TEXT_BYTE_SEEK,
+                          "GUPNP_DLNA_FLAGS_LOP_CLEAR_TEXT_BYTE_SEEK",
+                          "lop-cleartext-byteseek" },
                         { 0, NULL, NULL }
                 };
 
diff --git a/libgupnp-av/gupnp-dlna.h b/libgupnp-av/gupnp-dlna.h
index c0beb20..3ce0562 100644
--- a/libgupnp-av/gupnp-dlna.h
+++ b/libgupnp-av/gupnp-dlna.h
@@ -88,11 +88,18 @@ gupnp_dlna_flags_get_type (void) G_GNUC_CONST;
  *                                             supported
  * @GUPNP_DLNA_FLAGS_CONNECTION_STALL: No content transfer when paused.
  * @GUPNP_DLNA_FLAGS_DLNA_V15: DLNAv1.5 version flag
+ * @GUPNP_DLNA_FLAGS_LINK_PROTECTED_CONTENT: The content is protected.
+ * @GUPNP_DLNA_FLAGS_CLEAR_TEXT_BYTE_SEEK_FULL: Full byte seek on cleartext
+ *                                              domain is supported.
+ * @GUPNP_DLNA_FLAGS_LOP_CLEAR_TEXT_BYTE_SEEK: Limited operations on
+ *                                              byte seek in cleartext domain.
  *
  * The miscellaneous operations supported by a resource. For details on these
  * flags please refer to section 7.3.37.2 of DLNA Networked Device
  * Interoperability Guidelines Volume 1, October 2006.
  *
+ * Updated DTCP Flags based on 2011 Guidelines, section 7.4.1.3.23.2
+ *
  **/
 typedef enum {
         GUPNP_DLNA_FLAGS_NONE                      = 0,
@@ -107,7 +114,10 @@ typedef enum {
         GUPNP_DLNA_FLAGS_INTERACTIVE_TRANSFER_MODE = (1 << 23),
         GUPNP_DLNA_FLAGS_BACKGROUND_TRANSFER_MODE  = (1 << 22),
         GUPNP_DLNA_FLAGS_CONNECTION_STALL          = (1 << 21),
-        GUPNP_DLNA_FLAGS_DLNA_V15                  = (1 << 20)
+        GUPNP_DLNA_FLAGS_DLNA_V15                  = (1 << 20),
+        GUPNP_DLNA_FLAGS_LINK_PROTECTED_CONTENT    = (1 << 16),
+        GUPNP_DLNA_FLAGS_CLEAR_TEXT_BYTE_SEEK_FULL = (1 << 15),
+        GUPNP_DLNA_FLAGS_LOP_CLEAR_TEXT_BYTE_SEEK  = (1 << 14)
 } GUPnPDLNAFlags;
 
 /**


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