]> git.sesse.net Git - vlc/blobdiff - include/vlc/libvlc_media.h
libvlc: add two functions
[vlc] / include / vlc / libvlc_media.h
index 88857c41a07c65336884c8d77f957bb0cab793fe..2ad15c27bcf8a5af7e94e23cfda53d19706f7fa6 100644 (file)
@@ -247,6 +247,28 @@ VLC_PUBLIC_API char * libvlc_media_get_meta(
                                    libvlc_media_t *p_meta_desc,
                                    libvlc_meta_t e_meta );
 
+/**
+ * Set the meta of the media (this function will not save the meta, call
+ * libvlc_media_save_meta in order to save the meta)
+ *
+ * \param p_md the media descriptor
+ * \param e_meta the meta to read
+ * \param the media's meta
+ */
+VLC_PUBLIC_API void libvlc_media_set_meta( libvlc_media_t *p_md,
+                                           libvlc_meta_t e_meta,
+                                           const char *psz_value );
+
+
+/**
+ * Save the meta previously set
+ *
+ * \param p_md the media desriptor
+ * \return true if the werite was successfull
+ */
+VLC_PUBLIC_API int libvlc_media_save_meta( libvlc_media_t *p_md );
+
+
 /**
  * Get current state of media descriptor object. Possible media states
  * are defined in libvlc_structures.c ( libvlc_NothingSpecial=0,