back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/queue.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-05-25 21:36:07 +0300
committerscratko <m@scratko.xyz>2024-05-25 22:05:47 +0300
commitfb322edd72bebddee1a9828baec2f8bc83666ddf (patch)
treefab49e1e88ab1b3b20a45aba354b85b5fdafeff4 /queue.h
parentc1e5cffb43977f5a2f8d9623e40c01dab6d80c46 (diff)
downloadshell-fb322edd72bebddee1a9828baec2f8bc83666ddf.tar.gz
shell-fb322edd72bebddee1a9828baec2f8bc83666ddf.tar.bz2
shell-fb322edd72bebddee1a9828baec2f8bc83666ddf.zip
Shell-II releaseshell-II
Implementation of launching external programs via fork(). Running cd as a change to the current process directory (chdir). Ability to change to user's home directory (cd without arguments).
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/queue.h b/queue.h
index db8ac54..fedcd0b 100644
--- a/queue.h
+++ b/queue.h
@@ -14,6 +14,10 @@ struct queue {
void queue_init(struct queue *q);
void queue_push(struct queue *q, char *word);
void queue_clear(struct queue *q);
+#if 0
void queue_processing(const struct queue *q, void (*callback)(char*));
+#endif
+int queue_get_word_count(const struct queue *q);
+void queue_copy_words_to_args(const struct queue *q, char **cmdline);
#endif