herdd: rename runlevels to targets
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#ifndef TARGET_H_
|
||||
#define TARGET_H_
|
||||
|
||||
#include "queue.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct target {
|
||||
char *rl_name;
|
||||
char *rl_description;
|
||||
char **rl_requires;
|
||||
size_t rl_requires_count;
|
||||
struct queue_entry rl_entry;
|
||||
};
|
||||
|
||||
extern struct queue *global_targets(void);
|
||||
|
||||
extern int target_load(const char *name, const char *path, struct target **out);
|
||||
extern struct target *target_find(const char *name);
|
||||
extern int target_activate(struct target *rl);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user