mirror of https://github.com/ericonr/ep.git
45 lines
787 B
C
45 lines
787 B
C
#ifndef EP_H
|
|
#define EP_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <pthread.h>
|
|
|
|
enum task_identity {
|
|
task_launch_root_lang,
|
|
};
|
|
|
|
struct threaded_task {
|
|
pthread_t handle;
|
|
int launched;
|
|
enum task_identity task;
|
|
};
|
|
|
|
/* from ep.c */
|
|
extern pthread_attr_t *thread_a;
|
|
|
|
/* from out.c */
|
|
extern FILE *out, *outerr;
|
|
enum log_level_value { DEBUG, INFO, WARN, ERROR };
|
|
extern const enum log_level_value log_level;
|
|
void p(const char *);
|
|
void e(enum log_level_value, const char *, int);
|
|
|
|
/* from path.c */
|
|
extern const int fish_style_dir;
|
|
void print_pwd(const char *, char *);
|
|
|
|
/* from git.c */
|
|
void *git_thread(void *);
|
|
void print_git(void *);
|
|
void free_git(void *);
|
|
|
|
/* from lang.c */
|
|
void *lang_thread(void *);
|
|
void print_lang(uint64_t);
|
|
|
|
/* from ssh.c */
|
|
void print_ssh(void);
|
|
|
|
#endif
|