[Xfce4-commits] [panel-plugins/xfce4-places-plugin] 17/30: Drop inline/extern from function declarations
noreply at xfce.org
noreply at xfce.org
Mon Apr 22 12:08:08 CEST 2019
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-places-plugin.
commit efe07e373ce34b75763074da6323daedc613d780
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Apr 20 14:57:39 2019 -0300
Drop inline/extern from function declarations
---
panel-plugin/model.c | 20 ++++++++++----------
panel-plugin/model.h | 27 +++++++++------------------
panel-plugin/model_user.c | 6 +++---
panel-plugin/model_volumes.c | 2 +-
4 files changed, 23 insertions(+), 32 deletions(-)
diff --git a/panel-plugin/model.c b/panel-plugin/model.c
index 247243b..3cd6ead 100644
--- a/panel-plugin/model.c
+++ b/panel-plugin/model.c
@@ -29,7 +29,7 @@
/********** PlacesBookmarkAction **********/
-inline PlacesBookmarkAction*
+PlacesBookmarkAction*
places_bookmark_action_create(gchar *label)
{
PlacesBookmarkAction *action;
@@ -40,7 +40,7 @@ places_bookmark_action_create(gchar *label)
return action;
}
-inline void
+void
places_bookmark_action_destroy(PlacesBookmarkAction *act)
{
g_assert(act != NULL);
@@ -51,7 +51,7 @@ places_bookmark_action_destroy(PlacesBookmarkAction *act)
g_free(act);
}
-inline void
+void
places_bookmark_action_call(PlacesBookmarkAction *act)
{
g_assert(act != NULL);
@@ -66,7 +66,7 @@ places_bookmark_action_call(PlacesBookmarkAction *act)
static int bookmarks = 0;
#endif
-inline PlacesBookmark*
+PlacesBookmark*
places_bookmark_create(gchar *label)
{
PlacesBookmark *bookmark;
@@ -81,7 +81,7 @@ places_bookmark_create(gchar *label)
return bookmark;
}
-static inline void
+static void
places_bookmark_actions_destroy(GList *actions)
{
while(actions != NULL){
@@ -92,7 +92,7 @@ places_bookmark_actions_destroy(GList *actions)
g_list_free(actions);
}
-inline void
+void
places_bookmark_destroy(PlacesBookmark *bookmark)
{
g_assert(bookmark != NULL);
@@ -121,7 +121,7 @@ places_bookmark_destroy(PlacesBookmark *bookmark)
/********** PlacesBookmarkGroup **********/
-inline GList*
+GList*
places_bookmark_group_get_bookmarks(PlacesBookmarkGroup *pbg)
{
g_assert(pbg->get_bookmarks != NULL);
@@ -129,7 +129,7 @@ places_bookmark_group_get_bookmarks(PlacesBookmarkGroup *pbg)
return pbg->get_bookmarks(pbg);
}
-inline gboolean
+gboolean
places_bookmark_group_changed(PlacesBookmarkGroup *pbg)
{
g_assert(pbg->changed != NULL);
@@ -137,7 +137,7 @@ places_bookmark_group_changed(PlacesBookmarkGroup *pbg)
return pbg->changed(pbg);
}
-inline PlacesBookmarkGroup*
+PlacesBookmarkGroup*
places_bookmark_group_create(void)
{
PlacesBookmarkGroup *bookmark_group;
@@ -146,7 +146,7 @@ places_bookmark_group_create(void)
return bookmark_group;
}
-inline void
+void
places_bookmark_group_destroy(PlacesBookmarkGroup *pbg)
{
if(pbg->finalize != NULL)
diff --git a/panel-plugin/model.h b/panel-plugin/model.h
index 043e391..d23e9e6 100644
--- a/panel-plugin/model.h
+++ b/panel-plugin/model.h
@@ -36,14 +36,11 @@ struct _PlacesBookmarkAction
void (*finalize) (PlacesBookmarkAction *self);
};
-extern inline PlacesBookmarkAction*
-places_bookmark_action_create(gchar *label);
+PlacesBookmarkAction* places_bookmark_action_create(gchar *label);
-extern inline void
-places_bookmark_action_destroy(PlacesBookmarkAction*);
+void places_bookmark_action_destroy(PlacesBookmarkAction*);
-extern inline void
-places_bookmark_action_call(PlacesBookmarkAction*);
+void places_bookmark_action_call(PlacesBookmarkAction*);
/* Places Bookmark */
@@ -70,11 +67,9 @@ struct _PlacesBookmark
void (*finalize) (PlacesBookmark *self);
};
-extern inline PlacesBookmark*
-places_bookmark_create(gchar *label);
+PlacesBookmark* places_bookmark_create(gchar *label);
-extern inline void
-places_bookmark_destroy(PlacesBookmark *bookmark);
+void places_bookmark_destroy(PlacesBookmark *bookmark);
/* Places Bookmark Group */
typedef struct _PlacesBookmarkGroup PlacesBookmarkGroup;
@@ -86,17 +81,13 @@ struct _PlacesBookmarkGroup
gpointer priv;
};
-extern inline GList*
-places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*);
+GList* places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*);
-extern inline gboolean
-places_bookmark_group_changed(PlacesBookmarkGroup*);
+gboolean places_bookmark_group_changed(PlacesBookmarkGroup*);
-extern inline PlacesBookmarkGroup*
-places_bookmark_group_create();
+PlacesBookmarkGroup* places_bookmark_group_create();
-extern inline void
-places_bookmark_group_destroy(PlacesBookmarkGroup*);
+void places_bookmark_group_destroy(PlacesBookmarkGroup*);
#endif
/* vim: set ai et tabstop=4: */
diff --git a/panel-plugin/model_user.c b/panel-plugin/model_user.c
index 47fd15a..7663b12 100644
--- a/panel-plugin/model_user.c
+++ b/panel-plugin/model_user.c
@@ -60,7 +60,7 @@ typedef struct
} PBUserData;
-static inline time_t
+static time_t
pbuser_get_mtime(const gchar *filename)
{
struct stat buf;
@@ -70,7 +70,7 @@ pbuser_get_mtime(const gchar *filename)
return 1;
}
-static inline gboolean
+static gboolean
pbuser_dir_exists(const gchar *path)
{
return g_file_test(path, G_FILE_TEST_IS_DIR);
@@ -385,7 +385,7 @@ pbuser_finalize(PlacesBookmarkGroup *bookmark_group)
}
-/* external interface */
+/* public interface */
PlacesBookmarkGroup*
places_bookmarks_user_create(void)
diff --git a/panel-plugin/model_volumes.c b/panel-plugin/model_volumes.c
index 7518c19..0948471 100644
--- a/panel-plugin/model_volumes.c
+++ b/panel-plugin/model_volumes.c
@@ -383,7 +383,7 @@ pbvol_is_present(GVolume *volume)
return has_media && !is_shadowed;
}
-static inline gboolean
+static gboolean
pbvol_show_volume(GVolume *volume){
GMount *mount = g_volume_get_mount(volume);
DBG("Volume: %s [mounted=%x removable=%x present=%x]", g_volume_get_name(volume),
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list