[snappy] engine: rearrange order of static functions
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] engine: rearrange order of static functions
- Date: Sat, 12 May 2012 12:35:09 +0000 (UTC)
commit da73b81e5a9041b4d264f8c22452e5b8da53d722
Author: Luis de Bethencourt <luis debethencourt com>
Date: Sat May 12 13:35:18 2012 +0100
engine: rearrange order of static functions
src/gst_engine.c | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/src/gst_engine.c b/src/gst_engine.c
index 5ed0d4a..a6cabe5 100644
--- a/src/gst_engine.c
+++ b/src/gst_engine.c
@@ -50,7 +50,6 @@ typedef enum
} GstPlayFlags;
// Declaration of static functions
-static void write_key_file_to_file (GKeyFile * keyfile, const char *path);
gboolean add_uri_to_history (gchar * uri);
gboolean add_uri_unfinished_playback (GstEngine * engine, gchar * uri,
gint64 position);
@@ -60,29 +59,10 @@ static void print_tag (const GstTagList * list, const gchar * tag,
gpointer unused);
void remove_uri_unfinished_playback (GstEngine * engine, gchar * uri);
void stream_done (GstEngine * engine, UserInterface *ui);
+static void write_key_file_to_file (GKeyFile * keyfile, const char *path);
/* -------------------- static functions --------------------- */
-static void
-write_key_file_to_file (GKeyFile * keyfile, const char *path)
-{
- gchar *data, *dir;
- GError *error = NULL;
-
- dir = g_path_get_dirname (path);
- g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
- g_free (dir);
-
- data = g_key_file_to_data (keyfile, NULL, NULL);
- g_file_set_contents (path, data, strlen (data), &error);
- if (error != NULL) {
- g_warning ("Failed to write history file to %s: %s", path, error->message);
- g_error_free (error);
- }
-
- g_free (data);
-}
-
/* Add URI to recently viewed list */
gboolean
add_uri_to_history (gchar * uri)
@@ -370,6 +350,26 @@ void stream_done (GstEngine * engine, UserInterface *ui)
}
}
+static void
+write_key_file_to_file (GKeyFile * keyfile, const char *path)
+{
+ gchar *data, *dir;
+ GError *error = NULL;
+
+ dir = g_path_get_dirname (path);
+ g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
+ g_free (dir);
+
+ data = g_key_file_to_data (keyfile, NULL, NULL);
+ g_file_set_contents (path, data, strlen (data), &error);
+ if (error != NULL) {
+ g_warning ("Failed to write history file to %s: %s", path, error->message);
+ g_error_free (error);
+ }
+
+ g_free (data);
+}
+
/* -------------------- non-static functions --------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]