[gupnp-av/wip/didl-lite-fragments: 15/20] Add a header with GUPnP-AV enums.



commit edf5124c6c906e056039ecd60655a391303b72a7
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Thu Oct 25 11:34:02 2012 +0200

    Add a header with GUPnP-AV enums.
    
    For now it has only fragments related enum, but in future the rest of
    enums could be moved there.

 libgupnp-av/Makefile.am      |    3 +-
 libgupnp-av/gupnp-av-enums.h |   43 ++++++++++++++++++++++++++++++++++++++++++
 libgupnp-av/gupnp-av.h       |    1 +
 3 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp-av/Makefile.am b/libgupnp-av/Makefile.am
index c7e9438..5737f65 100644
--- a/libgupnp-av/Makefile.am
+++ b/libgupnp-av/Makefile.am
@@ -31,7 +31,8 @@ libgupnp_av_inc_HEADERS = gupnp-didl-lite-object.h \
 			  gupnp-feature-list-parser.h \
 			  gupnp-dlna.h \
 			  gupnp-av-error.h \
-			  gupnp-av.h
+			  gupnp-av.h \
+			  gupnp-av-enums.h
 
 
 gupnp-av-marshal.c: gupnp-av-marshal.list
diff --git a/libgupnp-av/gupnp-av-enums.h b/libgupnp-av/gupnp-av-enums.h
new file mode 100644
index 0000000..701fd14
--- /dev/null
+++ b/libgupnp-av/gupnp-av-enums.h
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2012 Intel Corporation
+ *
+ * Authors: Krzesimir Nowak <krnowak openismus com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GUPNP_AV_ENUMS_H__
+#define __GUPNP_AV_ENUMS_H__
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef enum {
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_OK,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_CURRENT_BAD_XML,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_NEW_BAD_XML,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_CURRENT_INVALID,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_NEW_INVALID,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_REQUIRED_TAG,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_READONLY_TAG,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_MISMATCH,
+      GUPNP_DIDL_LITE_FRAGMENT_RESULT_UNKNOWN_ERROR
+} GUPnPDIDLLiteFragmentResult;
+
+G_END_DECLS
+
+#endif /* __GUPNP_AV_ENUMS_H__ */
diff --git a/libgupnp-av/gupnp-av.h b/libgupnp-av/gupnp-av.h
index 005cf0a..21da810 100644
--- a/libgupnp-av/gupnp-av.h
+++ b/libgupnp-av/gupnp-av.h
@@ -21,6 +21,7 @@
  * Boston, MA 02110-1301, USA.
  */
 
+#include "gupnp-av-enums.h"
 #include "gupnp-didl-lite-object.h"
 #include "gupnp-didl-lite-container.h"
 #include "gupnp-didl-lite-createclass.h"



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