23 lines
448 B
C
23 lines
448 B
C
#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
|