]> git.proxmox.com Git - libgit2.git/blob - tests/status/status_helpers.h
Merge pull request #1962 from libgit2/rename-tests
[libgit2.git] / tests / status / status_helpers.h
1 #ifndef INCLUDE_cl_status_helpers_h__
2 #define INCLUDE_cl_status_helpers_h__
3
4 typedef struct {
5 int wrong_status_flags_count;
6 int wrong_sorted_path;
7 int entry_count;
8 const unsigned int* expected_statuses;
9 const char** expected_paths;
10 int expected_entry_count;
11 bool debug;
12 } status_entry_counts;
13
14 /* cb_status__normal takes payload of "status_entry_counts *" */
15
16 extern int cb_status__normal(
17 const char *path, unsigned int status_flags, void *payload);
18
19
20 /* cb_status__count takes payload of "int *" */
21
22 extern int cb_status__count(const char *p, unsigned int s, void *payload);
23
24
25 typedef struct {
26 int count;
27 unsigned int status;
28 bool debug;
29 } status_entry_single;
30
31 /* cb_status__single takes payload of "status_entry_single *" */
32
33 extern int cb_status__single(const char *p, unsigned int s, void *payload);
34
35 /* cb_status__print takes optional payload of "int *" */
36
37 extern int cb_status__print(const char *p, unsigned int s, void *payload);
38
39 #endif