comparison toys.h @ 1:59d58fab67c6

Next snapshot. Tries to grab something out of lib in order to build, I have an empty "blah.c" in there to make it happy but I'm not checking that in.
author landley@driftwood
date Thu, 28 Sep 2006 17:18:51 -0400
parents
children 67b517913e56
comparison
equal deleted inserted replaced
0:e651a31d5416 1:59d58fab67c6
1 /* vi: set ts=4 :*/
2 /* Toybox infrastructure.
3 *
4 * Copyright 2006 Rob Landley <rob@landley.net>
5 *
6 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
7 */
8
9 #include <stdio.h>
10 #include <strings.h>
11
12 /*
13 name
14 main()
15 struct
16 usage (short long example info)
17 path (/usr/sbin)
18 */
19
20 int toybox_main(void);
21 int toysh_main(void);
22 int df_main(void);
23
24 extern struct toy_list {
25 char *name;
26 int (*toy_main)(void);
27 } toy_list[];
28 struct toy_list *find_toy_by_name(char *name);
29
30 // Global context for this applet.
31
32 extern struct toy_context {
33 struct toy_list *which;
34 int argc;
35 char **argv;
36 char buf[4096];
37 } toys;
38
39 struct toybox_data {;};
40 struct toysh_data {;};
41 struct df_data {;};
42
43 union toy_union {
44 struct toybox_data toybox;
45 struct toysh_data toysh;
46 struct df_data df;
47 } toy;
48