mirror of
https://github.com/git/git
synced 2024-07-02 15:48:44 +00:00
35 lines
761 B
C
35 lines
761 B
C
|
#ifndef FSMONITOR_DAEMON_H
|
||
|
#define FSMONITOR_DAEMON_H
|
||
|
|
||
|
#ifdef HAVE_FSMONITOR_DAEMON_BACKEND
|
||
|
|
||
|
#include "cache.h"
|
||
|
#include "dir.h"
|
||
|
#include "run-command.h"
|
||
|
#include "simple-ipc.h"
|
||
|
#include "thread-utils.h"
|
||
|
|
||
|
struct fsmonitor_batch;
|
||
|
struct fsmonitor_token_data;
|
||
|
|
||
|
struct fsmonitor_daemon_backend_data; /* opaque platform-specific data */
|
||
|
|
||
|
struct fsmonitor_daemon_state {
|
||
|
pthread_t listener_thread;
|
||
|
pthread_mutex_t main_lock;
|
||
|
|
||
|
struct strbuf path_worktree_watch;
|
||
|
struct strbuf path_gitdir_watch;
|
||
|
int nr_paths_watching;
|
||
|
|
||
|
struct fsmonitor_token_data *current_token_data;
|
||
|
|
||
|
int error_code;
|
||
|
struct fsmonitor_daemon_backend_data *backend_data;
|
||
|
|
||
|
struct ipc_server_data *ipc_server_data;
|
||
|
};
|
||
|
|
||
|
#endif /* HAVE_FSMONITOR_DAEMON_BACKEND */
|
||
|
#endif /* FSMONITOR_DAEMON_H */
|