forked from RogerGee/php-git2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattr.h
115 lines (102 loc) · 2.98 KB
/
attr.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
* attr.h
*
* Copyright (C) Roger P. Gee
*/
#ifndef PHPGIT2_ATTR_H
#define PHPGIT2_ATTR_H
namespace php_git2
{
}
static constexpr auto ZIF_GIT_ATTR_ADD_MACRO = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_repository*,
const char*,
const char*>::func<git_attr_add_macro>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_repository>,
php_git2::php_string,
php_git2::php_string
>
>;
static constexpr auto ZIF_GIT_ATTR_CACHE_FLUSH = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_repository*>::func<git_attr_cache_flush>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_repository>
>
>;
static constexpr auto ZIF_GIT_ATTR_FOREACH = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_repository*,
uint32_t,
const char*,
git_attr_foreach_cb,
void*>::func<git_attr_foreach>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_repository>,
php_git2::php_long_cast<uint32_t>,
php_git2::php_string,
php_git2::php_callback_handler<php_git2::attr_foreach_callback>,
php_git2::php_callback_sync
>,
-1,
php_git2::sequence<0,1,2,4,4>,
php_git2::sequence<0,1,2,3,4>
>;
static constexpr auto ZIF_GIT_ATTR_GET = zif_php_git2_function<
php_git2::func_wrapper<
int,
const char**,
git_repository*,
uint32_t,
const char*,
const char*>::func<git_attr_get>,
php_git2::local_pack<
php_git2::php_string_ref,
php_git2::php_resource<php_git2::php_git_repository>,
php_git2::php_long_cast<uint32_t>,
php_git2::php_string,
php_git2::php_string
>,
1,
php_git2::sequence<1,2,3,4>,
php_git2::sequence<0,1,2,3,4>
>;
// static constexpr auto ZIF_GIT_ATTR_GET_MANY = zif_php_git2_function<
// php_git2::func_wrapper<
// >::func<git_attr_get_many>,
// php_git2::local_pack<
// >,
// -1,
// php_git2::sequence<>,
// php_git2::sequence<>,
// php_git2::sequence<>
// >;
static constexpr auto ZIF_GIT_ATTR_VALUE = zif_php_git2_function<
php_git2::func_wrapper<
git_attr_t,
const char*>::func<git_attr_value>,
php_git2::local_pack<
php_git2::php_string
>,
0
>;
#define GIT_ATTR_FE \
PHP_GIT2_FE(git_attr_add_macro,ZIF_GIT_ATTR_ADD_MACRO,NULL) \
PHP_GIT2_FE(git_attr_cache_flush,ZIF_GIT_ATTR_CACHE_FLUSH,NULL) \
PHP_GIT2_FE(git_attr_foreach,ZIF_GIT_ATTR_FOREACH,NULL) \
PHP_GIT2_FE(git_attr_get,ZIF_GIT_ATTR_GET,NULL) \
PHP_GIT2_UNIMPLEMENTED(git_attr_get_many,ZIF_GIT_ATTR_GET_MANY,NULL) \
PHP_GIT2_FE(git_attr_value,ZIF_GIT_ATTR_VALUE,NULL)
#endif
/*
* Local Variables:
* mode:c++
* indent-tabs-mode:nil
* tab-width:4
* End:
*/