summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2007-05-21 09:51:19 -0400
committerRay Strode <rstrode@redhat.com>2007-05-21 09:51:19 -0400
commitaebc4650c6e9705638847d08c7ba2e28efcdbae4 (patch)
tree85deb81ff3779a3a78b7eb63c60a41f5c18810d6 /src
parentd1f2ac9c608bbc3b11245b31bbf314c6fbd6c235 (diff)
downloadplymouth-aebc4650c6e9705638847d08c7ba2e28efcdbae4.tar.gz
plymouth-aebc4650c6e9705638847d08c7ba2e28efcdbae4.tar.xz
plymouth-aebc4650c6e9705638847d08c7ba2e28efcdbae4.zip
move static functions in ply-terminal-session.c to top
Diffstat (limited to 'src')
-rw-r--r--src/ply-terminal-session.c54
1 files changed, 29 insertions, 25 deletions
diff --git a/src/ply-terminal-session.c b/src/ply-terminal-session.c
index 65e00d4..472ecd4 100644
--- a/src/ply-terminal-session.c
+++ b/src/ply-terminal-session.c
@@ -43,31 +43,9 @@ struct _ply_terminal_session
char **argv;
};
-ply_terminal_session_t *
-ply_terminal_session_new (const char * const *argv)
-
-{
- ply_terminal_session_t *session;
-
- assert (argv != NULL);
-
- session = calloc (1, sizeof (ply_terminal_session_t));
- session->argv = ply_copy_string_array (argv);
- session->terminal = ply_terminal_new ();
-
- return session;
-}
-
-void
-ply_terminal_session_free (ply_terminal_session_t *session)
-{
- if (session == NULL)
- return;
-
- ply_free_string_array (session->argv);
- ply_terminal_free (session->terminal);
- free (session);
-}
+static bool ply_terminal_session_open_console (ply_terminal_session_t *session);
+static bool ply_terminal_session_execute (ply_terminal_session_t *session,
+ bool look_in_path);
static bool
ply_terminal_session_open_console (ply_terminal_session_t *session)
@@ -124,6 +102,32 @@ ply_terminal_session_execute (ply_terminal_session_t *session,
return false;
}
+ply_terminal_session_t *
+ply_terminal_session_new (const char * const *argv)
+
+{
+ ply_terminal_session_t *session;
+
+ assert (argv != NULL);
+
+ session = calloc (1, sizeof (ply_terminal_session_t));
+ session->argv = ply_copy_string_array (argv);
+ session->terminal = ply_terminal_new ();
+
+ return session;
+}
+
+void
+ply_terminal_session_free (ply_terminal_session_t *session)
+{
+ if (session == NULL)
+ return;
+
+ ply_free_string_array (session->argv);
+ ply_terminal_free (session->terminal);
+ free (session);
+}
+
bool
ply_terminal_session_run (ply_terminal_session_t *session,
ply_terminal_session_flags_t flags)