summaryrefslogtreecommitdiff
path: root/410kern/inc/exec2obj.h
blob: 2229c2963b0d6c2f0925f9d08daa5cb423d1a49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
  Name: exec2obj.h
  Date: February 24th 2003
  Author: Steve Muckle

  Provides the interface to access user programs compiled as const char
  arrays.
*/

#ifndef _EXEC2OBJ_H
#define _EXEC2OBJ_H

#define MAX_EXECNAME_LEN    256
#define MAX_NUM_APP_ENTRIES 256

/* Format of entries in the table of contents. */
typedef struct {
  const char execname[MAX_EXECNAME_LEN];
  const char* execbytes;
  int execlen;
} exec2obj_userapp_TOC_entry;

/* The number of user executables in the table of contents. */
extern const int exec2obj_userapp_count;

/* The table of contents. */
extern const exec2obj_userapp_TOC_entry exec2obj_userapp_TOC[MAX_NUM_APP_ENTRIES];

#endif /* _EXEC2OBJ_H */