[PATCH 08/13] core: grl-config functions from macros made inline



---
 src/data/grl-config.c |   18 +++++++++---------
 src/data/grl-config.h |   19 +++++++++----------
 2 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/src/data/grl-config.c b/src/data/grl-config.c
index 382b921..f486a3a 100644
--- a/src/data/grl-config.c
+++ b/src/data/grl-config.c
@@ -207,7 +207,7 @@ grl_config_get_float (GrlConfig *config, const gchar *param)
  *
  * Set the plugin key in the configuration
  */
-void
+inline void
 grl_config_set_plugin (GrlConfig *config, const gchar *plugin)
 {
   grl_config_set_string (GRL_CONFIG (config),
@@ -222,7 +222,7 @@ grl_config_set_plugin (GrlConfig *config, const gchar *plugin)
  *
  * Set the plugin key in the configuration
  */
-void
+inline void
 grl_config_set_source (GrlConfig *config, const gchar *source)
 {
   grl_config_set_string (GRL_CONFIG (config),
@@ -237,7 +237,7 @@ grl_config_set_source (GrlConfig *config, const gchar *source)
  *
  * Set the webservice API key in the configuration
  */
-void
+inline void
 grl_config_set_api_key (GrlConfig *config, const gchar *key)
 {
   grl_config_set_string (GRL_CONFIG (config),
@@ -252,7 +252,7 @@ grl_config_set_api_key (GrlConfig *config, const gchar *key)
  *
  * Set the webservice API token in the configuration
  */
-void
+inline void
 grl_config_set_api_token (GrlConfig *config, const gchar *token)
 {
   grl_config_set_string (GRL_CONFIG (config),
@@ -267,7 +267,7 @@ grl_config_set_api_token (GrlConfig *config, const gchar *token)
  *
  * Set the webservice passphrase in the configuration
  */
-void
+inline void
 grl_config_set_api_secret (GrlConfig *config, const gchar *secret)
 {
   grl_config_set_string (GRL_CONFIG (config),
@@ -281,7 +281,7 @@ grl_config_set_api_secret (GrlConfig *config, const gchar *secret)
  *
  * Returns: (type utf8) (transfer none): the plugin id
  */
-const gchar *
+inline const gchar *
 grl_config_get_plugin (GrlConfig *config)
 {
   return grl_config_get_string (GRL_CONFIG (config),
@@ -294,7 +294,7 @@ grl_config_get_plugin (GrlConfig *config)
  *
  * Returns: (type utf8) (transfer none): the webservice API key
  */
-const gchar *
+inline const gchar *
 grl_config_get_api_key (GrlConfig *config)
 {
   return grl_config_get_string (GRL_CONFIG (config),
@@ -307,7 +307,7 @@ grl_config_get_api_key (GrlConfig *config)
  *
  * Returns: (type utf8) (transfer none): the webservice API token
  */
-const gchar *
+inline const gchar *
 grl_config_get_api_token (GrlConfig *config)
 {
   return grl_config_get_string (GRL_CONFIG (config),
@@ -320,7 +320,7 @@ grl_config_get_api_token (GrlConfig *config)
  *
  * Returns: (type utf8) (transfer none): the webservice API passphrase
  */
-const gchar *
+inline const gchar *
 grl_config_get_api_secret (GrlConfig *config)
 {
   return grl_config_get_string (GRL_CONFIG (config),
diff --git a/src/data/grl-config.h b/src/data/grl-config.h
index f164ff8..910996a 100644
--- a/src/data/grl-config.h
+++ b/src/data/grl-config.h
@@ -89,23 +89,23 @@ struct _GrlConfig
   GrlConfigPrivate *priv;
 };
 
-void grl_config_set_plugin (GrlConfig *config, const gchar *plugin);
+extern void grl_config_set_plugin (GrlConfig *config, const gchar *plugin);
 
-void grl_config_set_source (GrlConfig *config, const gchar *source);
+extern void grl_config_set_source (GrlConfig *config, const gchar *source);
 
-void grl_config_set_api_key (GrlConfig *config, const gchar *key);
+extern void grl_config_set_api_key (GrlConfig *config, const gchar *key);
 
-void grl_config_set_api_token (GrlConfig *config, const gchar *token);
+extern void grl_config_set_api_token (GrlConfig *config, const gchar *token);
 
-void grl_config_set_api_secret (GrlConfig *config, const gchar *secret);
+extern void grl_config_set_api_secret (GrlConfig *config, const gchar *secret);
 
-const gchar *grl_config_get_plugin (GrlConfig *config);
+extern const gchar *grl_config_get_plugin (GrlConfig *config);
 
-const gchar *grl_config_get_api_key (GrlConfig *config);
+extern const gchar *grl_config_get_api_key (GrlConfig *config);
 
-const gchar *grl_config_get_api_token (GrlConfig *config);
+extern const gchar *grl_config_get_api_token (GrlConfig *config);
 
-const gchar *grl_config_get_api_secret (GrlConfig *config);
+extern const gchar *grl_config_get_api_secret (GrlConfig *config);
 
 GType grl_config_get_type (void) G_GNUC_CONST;
 GrlConfig *grl_config_new (const gchar *plugin, const gchar *source);
@@ -128,7 +128,6 @@ gint grl_config_get_int (GrlConfig *config, const gchar *param);
 
 gfloat grl_config_get_float (GrlConfig *config, const gchar *param);
 
-
 G_END_DECLS
 
 #endif /* _GRL_CONFIG_H_ */
-- 
1.7.0.4



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