Add a new API for getting the uri of the provider_buffer.
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 11 Mar 2013 15:57:10 +0000 (15:57 +0000)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 11 Mar 2013 15:57:10 +0000 (15:57 +0000)
Change-Id: I73c7ee2ea4946b8485ae2be718a375e95cd639ea

include/provider_buffer.h
packaging/libprovider.spec
src/provider_buffer.c

index 0172dbc..d8f0b88 100644 (file)
@@ -120,6 +120,13 @@ extern const char *provider_buffer_pkgname(struct livebox_buffer *info);
 extern const char *provider_buffer_id(struct livebox_buffer *info);
 
 /*!
+ * \brief Give the URI of buffer information.
+ * \param[in] info
+ * \return uri
+ */
+extern const char *provider_buffer_uri(struct livebox_buffer *info);
+
+/*!
  * \brief
  * \param[in] info
  * \param[out] w
index cb78f63..300fd59 100644 (file)
@@ -1,6 +1,6 @@
 Name: libprovider
 Summary: Library for developing the livebox service provider.
-Version: 0.5.16
+Version: 0.5.17
 Release: 1
 Group: framework/livebox
 License: Flora License
index 110d90a..94e0d34 100644 (file)
@@ -384,6 +384,16 @@ EAPI int provider_buffer_get_size(struct livebox_buffer *info, int *w, int *h, i
        return 0;
 }
 
+EAPI const char *provider_buffer_uri(struct livebox_buffer *info)
+{
+       if (!info || info->state != BUFFER_CREATED) {
+               ErrPrint("Buffer handler is NULL\n");
+               return NULL;
+       }
+
+       return fb_id(info->fb);
+}
+
 /*!
  * \brief
  * If the given buffer is created as pixmap,