-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathep.h
44 lines (34 loc) · 787 Bytes
/
ep.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#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