[vlc-devel] commit: Fix compilation of set_text_domain() macro ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Nov 10 22:24:20 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 10 23:23:59 2009 +0200| [33692d21e5811e204c53f84b91ba3b73923d7dbb] | committer: Rémi Denis-Courmont 

Fix compilation of set_text_domain() macro

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33692d21e5811e204c53f84b91ba3b73923d7dbb
---

 include/vlc_plugin.h |    5 ++++-
 src/modules/entry.c  |    5 +++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 671aca0..38341c5 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -52,6 +52,7 @@ enum vlc_module_properties
     VLC_MODULE_SHORTNAME,
     VLC_MODULE_DESCRIPTION,
     VLC_MODULE_HELP,
+    VLC_MODULE_TEXTDOMAIN,
     /* Insert new VLC_MODULE_* here */
 
     /* DO NOT EVER REMOVE, INSERT OR REPLACE ANY ITEM! It would break the ABI!
@@ -234,7 +235,9 @@ enum vlc_module_properties
     if (vlc_module_set (p_submodule, VLC_MODULE_NO_UNLOAD)) \
         goto error;
 
-#define set_text_domain( dom ) domain = (dom);
+#define set_text_domain( dom ) \
+    if (vlc_module_set (p_module, VLC_MODULE_TEXTDOMAIN, (dom))) \
+        goto error;
 
 /*****************************************************************************
  * Macros used to build the configuration structure.
diff --git a/src/modules/entry.c b/src/modules/entry.c
index ef83dd7..c97739d 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -237,6 +237,11 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
             module->psz_help = va_arg (ap, char *);
             break;
 
+        case VLC_MODULE_TEXTDOMAIN:
+            (void) va_arg (ap, const char *);
+            /* FIXME: not implemented */
+            break;
+
         case VLC_CONFIG_NAME:
         {
             const char *name = va_arg (ap, const char *);




More information about the vlc-devel mailing list