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