blob: ec1ad76244feec1d6ae9d3717695aaa913c37528 [file] [log] [blame]
landleyc5621502006-09-28 17:18:51 -04001/* 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/*
13name
14main()
15struct
16usage (short long example info)
17path (/usr/sbin)
18*/
19
20int toybox_main(void);
21int toysh_main(void);
22int df_main(void);
23
24extern struct toy_list {
25 char *name;
26 int (*toy_main)(void);
27} toy_list[];
28struct toy_list *find_toy_by_name(char *name);
29
30// Global context for this applet.
31
32extern struct toy_context {
33 struct toy_list *which;
34 int argc;
35 char **argv;
36 char buf[4096];
37} toys;
38
39struct toybox_data {;};
40struct toysh_data {;};
41struct df_data {;};
42
43union toy_union {
44 struct toybox_data toybox;
45 struct toysh_data toysh;
46 struct df_data df;
47} toy;
48