forked from RogerGee/php-git2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.h
723 lines (652 loc) · 22.1 KB
/
index.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
/*
* index.h
*
* Copyright (C) Roger P. Gee
*/
#ifndef PHPGIT2_INDEX_H
#define PHPGIT2_INDEX_H
namespace php_git2
{
// Specialize resource destructor for git_index.
template<> inline php_git_index::~git2_resource()
{
git_index_free(handle);
}
// Specialize resource destructor for git_index_conflict_iterator.
template<> inline php_git_index_conflict_iterator::~git2_resource()
{
git_index_conflict_iterator_free(handle);
}
// Provide a type for converting user-supplied PHP array into
// git_index_entry.
class php_git_index_entry:
public php_array_base
{
public:
php_git_index_entry()
{
memset(&ent,0,sizeof(git_index_entry));
}
const git_index_entry* byval_git2()
{
array_wrapper arr(value);
php_git_index_time tm;
GIT2_ARRAY_LOOKUP_SUBOBJECT_DEREFERENCE(arr,tm,ctime,ent);
GIT2_ARRAY_LOOKUP_SUBOBJECT_DEREFERENCE(arr,tm,mtime,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,dev,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,ino,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,mode,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,uid,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,gid,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,file_size,ent);
GIT2_ARRAY_LOOKUP_OID(arr,id,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,flags,ent);
GIT2_ARRAY_LOOKUP_LONG(arr,flags_extended,ent);
GIT2_ARRAY_LOOKUP_STRING(arr,path,ent);
return &ent;
}
private:
git_index_entry ent;
class php_git_index_time:
public php_array_base
{
public:
php_git_index_time()
{
memset(&tv,0,sizeof(git_index_time));
}
const git_index_time* byval_git2()
{
array_wrapper arr(value);
GIT2_ARRAY_LOOKUP_LONG(arr,seconds,tv);
GIT2_ARRAY_LOOKUP_LONG(arr,nanoseconds,tv);
return &tv;
}
private:
git_index_time tv;
};
};
// Provide a nullable version of git_index_entry.
class php_git_index_entry_nullable:
public php_option_array
{
public:
const git_index_entry* byval_git2()
{
if (is_null()) {
return nullptr;
}
entry.set_value(get_value());
return entry.byval_git2();
}
private:
php_git_index_entry entry;
};
// Provide a type for converting git_index_entry to PHP array.
class php_git_index_entry_ref
{
public:
php_git_index_entry_ref():
ent(nullptr)
{
}
const git_index_entry** byval_git2()
{
return &ent;
}
void ret(zval* return_value)
{
if (ent != nullptr) {
php_git2::convert_index_entry(return_value,ent);
}
else {
ZVAL_NULL(return_value);
}
}
private:
const git_index_entry* ent;
};
class php_git_index_entry_out:
public php_output_parameter,
public php_git_index_entry_ref
{
public:
~php_git_index_entry_out()
{
ret(get_value());
}
};
// Provide a rethandler for php_git_index_entry.
class php_git_index_entry_rethandler
{
public:
template<typename... Ts>
bool ret(const git_index_entry* entry,zval* return_value,local_pack<Ts...>& pack)
{
if (entry == nullptr) {
RETVAL_FALSE;
return true;
}
php_git2::convert_index_entry(return_value,entry);
return true;
}
};
} // namespace php_git2
static constexpr auto ZIF_GIT_INDEX_ADD = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const git_index_entry*>::func<git_index_add>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_git_index_entry
>
>;
static constexpr auto ZIF_GIT_INDEX_ADD_ALL = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
int,
git_index*,
const git_strarray*,
unsigned int,
git_index_matched_path_cb,
void*>::func<git_index_add_all>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_git_strarray_array,
php_git2::php_long_cast<unsigned int>,
php_git2::php_callback_handler_nullable<php_git2::index_matched_path_callback>,
php_git2::php_callback_sync_nullable
>,
php_git2::php_git_callback_error_rethandler,
php_git2::sequence<0,1,2,4,4>,
php_git2::sequence<0,1,2,3,4>
>;
static constexpr auto ZIF_GIT_INDEX_ADD_BYPATH = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const char*>::func<git_index_add_bypath>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string
>
>;
static constexpr auto ZIF_GIT_INDEX_ADD_FROMBUFFER = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const git_index_entry*,
const void*,
size_t>::func<git_index_add_frombuffer>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_git_index_entry,
php_git2::connector_wrapper<php_git2::php_string_length_connector<size_t> >,
php_git2::php_string
>,
-1,
php_git2::sequence<0,1,3>,
php_git2::sequence<0,1,3,2>
>;
static constexpr auto ZIF_GIT_INDEX_CAPS = zif_php_git2_function<
php_git2::func_wrapper<
int,
const git_index*>::func<git_index_caps>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
0
>;
static constexpr auto ZIF_GIT_INDEX_CHECKSUM = zif_php_git2_function<
php_git2::func_wrapper<
const git_oid*,
git_index*>::func<git_index_checksum>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
0
>;
static constexpr auto ZIF_GIT_INDEX_CLEAR = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*>::func<git_index_clear>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>
>;
static constexpr auto ZIF_GIT_INDEX_CONFLICT_ADD = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const git_index_entry*,
const git_index_entry*,
const git_index_entry*>::func<git_index_conflict_add>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_git_index_entry_nullable,
php_git2::php_git_index_entry_nullable,
php_git2::php_git_index_entry_nullable
>
>;
static constexpr auto ZIF_GIT_INDEX_CONFLICT_CLEANUP = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*>::func<git_index_conflict_cleanup>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>
>;
static constexpr auto ZIF_GIT_INDEX_CONFLICT_GET = zif_php_git2_function<
php_git2::func_wrapper<
int,
const git_index_entry**,
const git_index_entry**,
const git_index_entry**,
git_index*,
const char*>::func<git_index_conflict_get>,
php_git2::local_pack<
php_git2::php_git_index_entry_out,
php_git2::php_git_index_entry_out,
php_git2::php_git_index_entry_out,
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string
>,
-1
>;
ZEND_BEGIN_ARG_INFO_EX(git_index_conflict_get_arginfo,0,0,5)
ZEND_ARG_PASS_INFO(1)
ZEND_ARG_PASS_INFO(1)
ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO()
static constexpr auto ZIF_GIT_INDEX_CONFLICT_ITERATOR_FREE = zif_php_git2_function_free<
php_git2::local_pack<
php_git2::php_resource_cleanup<php_git2::php_git_index_conflict_iterator>
>
>;
static constexpr auto ZIF_GIT_INDEX_CONFLICT_ITERATOR_NEW = zif_php_git2_function_setdeps<
php_git2::func_wrapper<
int,
git_index_conflict_iterator**,
git_index*>::func<git_index_conflict_iterator_new>,
php_git2::local_pack<
php_git2::php_resource_ref<php_git2::php_git_index_conflict_iterator>,
php_git2::php_resource<php_git2::php_git_index>
>,
php_git2::sequence<0,1>, // Make the iterator depend on the index.
1,
php_git2::sequence<1>,
php_git2::sequence<0,1>
>;
static constexpr auto ZIF_GIT_INDEX_CONFLICT_NEXT = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
int,
const git_index_entry**,
const git_index_entry**,
const git_index_entry**,
git_index_conflict_iterator*>::func<git_index_conflict_next>,
php_git2::local_pack<
php_git2::php_git_index_entry_out,
php_git2::php_git_index_entry_out,
php_git2::php_git_index_entry_out,
php_git2::php_resource<php_git2::php_git_index_conflict_iterator>
>,
php_git2::php_boolean_iterover_rethandler
>;
ZEND_BEGIN_ARG_INFO_EX(git_index_conflict_next_arginfo,0,0,4)
ZEND_ARG_PASS_INFO(1)
ZEND_ARG_PASS_INFO(1)
ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO()
static constexpr auto ZIF_GIT_INDEX_CONFLICT_REMOVE = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const char*>::func<git_index_conflict_remove>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string
>
>;
static constexpr auto ZIF_GIT_INDEX_ENTRYCOUNT = zif_php_git2_function<
php_git2::func_wrapper<
size_t,
const git_index*>::func<git_index_entrycount>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
0
>;
static constexpr auto ZIF_GIT_INDEX_ENTRY_IS_CONFLICT = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
int,
const git_index_entry*>::func<git_index_entry_is_conflict>,
php_git2::local_pack<
php_git2::php_git_index_entry
>,
php_git2::php_boolean_rethandler<int>
>;
static constexpr auto ZIF_GIT_INDEX_ENTRY_STAGE = zif_php_git2_function<
php_git2::func_wrapper<
int,
const git_index_entry*>::func<git_index_entry_stage>,
php_git2::local_pack<
php_git2::php_git_index_entry
>,
0
>;
static constexpr auto ZIF_GIT_INDEX_FIND = zif_php_git2_function<
php_git2::func_wrapper<
int,
size_t*,
git_index*,
const char*>::func<git_index_find>,
php_git2::local_pack<
php_git2::php_long_ref<size_t>,
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string
>,
1,
php_git2::sequence<1,2>,
php_git2::sequence<0,1,2>
>;
static constexpr auto ZIF_GIT_INDEX_FIND_PREFIX = zif_php_git2_function<
php_git2::func_wrapper<
int,
size_t*,
git_index*,
const char*>::func<git_index_find_prefix>,
php_git2::local_pack<
php_git2::php_long_ref<size_t>,
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string
>,
1,
php_git2::sequence<1,2>,
php_git2::sequence<0,1,2>
>;
static constexpr auto ZIF_GIT_INDEX_FREE = zif_php_git2_function_free<
php_git2::local_pack<
php_git2::php_resource_cleanup<php_git2::php_git_index>
>
>;
static constexpr auto ZIF_GIT_INDEX_GET_BYINDEX = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
const git_index_entry*,
git_index*,
size_t>::func<git_index_get_byindex>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_long_cast<size_t>
>,
php_git2::php_git_index_entry_rethandler
>;
static constexpr auto ZIF_GIT_INDEX_GET_BYPATH = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
const git_index_entry*,
git_index*,
const char*,
int>::func<git_index_get_bypath>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string,
php_git2::php_long_cast<int>
>,
php_git2::php_git_index_entry_rethandler
>;
static constexpr auto ZIF_GIT_INDEX_HAS_CONFLICTS = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
int,
const git_index*>::func<git_index_has_conflicts>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
php_git2::php_boolean_rethandler<int>
>;
static constexpr auto ZIF_GIT_INDEX_NEW = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index**>::func<git_index_new>,
php_git2::local_pack<
php_git2::php_resource_ref<php_git2::php_git_index>
>,
1,
php_git2::sequence<>,
php_git2::sequence<0>
>;
static constexpr auto ZIF_GIT_INDEX_OPEN = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index**,
const char*>::func<git_index_open>,
php_git2::local_pack<
php_git2::php_resource_ref<php_git2::php_git_index>,
php_git2::php_string
>,
1,
php_git2::sequence<1>,
php_git2::sequence<0,1>
>;
static constexpr auto ZIF_GIT_INDEX_OWNER = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
git_repository*,
const git_index*>::func<git_index_owner>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_resource_ref<php_git2::php_git_repository_nofree>
>,
php_git2::php_owner_rethandler<php_git2::php_git_index>,
php_git2::sequence<0>,
php_git2::sequence<0>
>;
static constexpr auto ZIF_GIT_INDEX_PATH = zif_php_git2_function<
php_git2::func_wrapper<
const char*,
const git_index*>::func<git_index_path>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
0
>;
static constexpr auto ZIF_GIT_INDEX_READ = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
int>::func<git_index_read>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_bool
>
>;
static constexpr auto ZIF_GIT_INDEX_READ_TREE = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const git_tree*>::func<git_index_read_tree>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_resource<php_git2::php_git_tree>
>
>;
static constexpr auto ZIF_GIT_INDEX_REMOVE = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const char*,
int>::func<git_index_remove>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string,
php_git2::php_long
>
>;
static constexpr auto ZIF_GIT_INDEX_REMOVE_ALL = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
int,
git_index*,
const git_strarray*,
git_index_matched_path_cb,
void*>::func<git_index_remove_all>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_git_strarray_array,
php_git2::php_callback_handler<php_git2::index_matched_path_callback>,
php_git2::php_callback_sync
>,
php_git2::php_git_callback_error_rethandler,
php_git2::sequence<0,1,3,3>,
php_git2::sequence<0,1,2,3>
>;
static constexpr auto ZIF_GIT_INDEX_REMOVE_BYPATH = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const char*>::func<git_index_remove_bypath>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string
>
>;
static constexpr auto ZIF_GIT_INDEX_REMOVE_DIRECTORY = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
const char*,
int>::func<git_index_remove_directory>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_string,
php_git2::php_long
>
>;
static constexpr auto ZIF_GIT_INDEX_SET_CAPS = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
int>::func<git_index_set_caps>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_long
>
>;
static constexpr auto ZIF_GIT_INDEX_SET_VERSION = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*,
unsigned int>::func<git_index_set_version>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_long_cast<unsigned int>
>
>;
static constexpr auto ZIF_GIT_INDEX_UPDATE_ALL = zif_php_git2_function_rethandler<
php_git2::func_wrapper<
int,
git_index*,
const git_strarray*,
git_index_matched_path_cb,
void*>::func<git_index_update_all>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_git_strarray_array,
php_git2::php_callback_handler<php_git2::index_matched_path_callback>,
php_git2::php_callback_sync
>,
php_git2::php_git_callback_error_rethandler,
php_git2::sequence<0,1,3,3>,
php_git2::sequence<0,1,2,3>
>;
static constexpr auto ZIF_GIT_INDEX_VERSION = zif_php_git2_function<
php_git2::func_wrapper<
unsigned int,
git_index*>::func<git_index_version>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
0
>;
static constexpr auto ZIF_GIT_INDEX_WRITE = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_index*>::func<git_index_write>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_index>
>,
-1
>;
static constexpr auto ZIF_GIT_INDEX_WRITE_TREE = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_oid*,
git_index*>::func<git_index_write_tree>,
php_git2::local_pack<
php_git2::php_git_oid,
php_git2::php_resource<php_git2::php_git_index>
>,
1,
php_git2::sequence<1>,
php_git2::sequence<0,1>
>;
static constexpr auto ZIF_GIT_INDEX_WRITE_TREE_TO = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_oid*,
git_index*,
git_repository*>::func<git_index_write_tree_to>,
php_git2::local_pack<
php_git2::php_git_oid,
php_git2::php_resource<php_git2::php_git_index>,
php_git2::php_resource<php_git2::php_git_repository>
>,
1,
php_git2::sequence<1,2>,
php_git2::sequence<0,1,2>
>;
#define GIT_INDEX_FE \
PHP_GIT2_FE(git_index_add,ZIF_GIT_INDEX_ADD,NULL) \
PHP_GIT2_FE(git_index_add_all,ZIF_GIT_INDEX_ADD_ALL,NULL) \
PHP_GIT2_FE(git_index_add_bypath,ZIF_GIT_INDEX_ADD_BYPATH,NULL) \
PHP_GIT2_FE(git_index_add_frombuffer,ZIF_GIT_INDEX_ADD_FROMBUFFER,NULL) \
PHP_GIT2_FE(git_index_caps,ZIF_GIT_INDEX_CAPS,NULL) \
PHP_GIT2_FE(git_index_checksum,ZIF_GIT_INDEX_CHECKSUM,NULL) \
PHP_GIT2_FE(git_index_clear,ZIF_GIT_INDEX_CLEAR,NULL) \
PHP_GIT2_FE(git_index_conflict_add,ZIF_GIT_INDEX_CONFLICT_ADD,NULL) \
PHP_GIT2_FE(git_index_conflict_cleanup,ZIF_GIT_INDEX_CONFLICT_CLEANUP,NULL) \
PHP_GIT2_FE(git_index_conflict_get,ZIF_GIT_INDEX_CONFLICT_GET,git_index_conflict_get_arginfo) \
PHP_GIT2_FE(git_index_conflict_iterator_free,ZIF_GIT_INDEX_CONFLICT_ITERATOR_FREE,NULL) \
PHP_GIT2_FE(git_index_conflict_iterator_new,ZIF_GIT_INDEX_CONFLICT_ITERATOR_NEW,NULL) \
PHP_GIT2_FE(git_index_conflict_next,ZIF_GIT_INDEX_CONFLICT_NEXT,git_index_conflict_next_arginfo) \
PHP_GIT2_FE(git_index_conflict_remove,ZIF_GIT_INDEX_CONFLICT_REMOVE,NULL) \
PHP_GIT2_FE(git_index_entrycount,ZIF_GIT_INDEX_ENTRYCOUNT,NULL) \
PHP_GIT2_FE(git_index_entry_is_conflict,ZIF_GIT_INDEX_ENTRY_IS_CONFLICT,NULL) \
PHP_GIT2_FE(git_index_entry_stage,ZIF_GIT_INDEX_ENTRY_STAGE,NULL) \
PHP_GIT2_FE(git_index_find,ZIF_GIT_INDEX_FIND,NULL) \
PHP_GIT2_FE(git_index_find_prefix,ZIF_GIT_INDEX_FIND_PREFIX,NULL) \
PHP_GIT2_FE(git_index_free,ZIF_GIT_INDEX_FREE,NULL) \
PHP_GIT2_FE(git_index_get_byindex,ZIF_GIT_INDEX_GET_BYINDEX,NULL) \
PHP_GIT2_FE(git_index_get_bypath,ZIF_GIT_INDEX_GET_BYPATH,NULL) \
PHP_GIT2_FE(git_index_has_conflicts,ZIF_GIT_INDEX_HAS_CONFLICTS,NULL) \
PHP_GIT2_FE(git_index_new,ZIF_GIT_INDEX_NEW,NULL) \
PHP_GIT2_FE(git_index_open,ZIF_GIT_INDEX_OPEN,NULL) \
PHP_GIT2_FE(git_index_owner,ZIF_GIT_INDEX_OWNER,NULL) \
PHP_GIT2_FE(git_index_path,ZIF_GIT_INDEX_PATH,NULL) \
PHP_GIT2_FE(git_index_read,ZIF_GIT_INDEX_READ,NULL) \
PHP_GIT2_FE(git_index_read_tree,ZIF_GIT_INDEX_READ_TREE,NULL) \
PHP_GIT2_FE(git_index_remove,ZIF_GIT_INDEX_REMOVE,NULL) \
PHP_GIT2_FE(git_index_remove_all,ZIF_GIT_INDEX_REMOVE_ALL,NULL) \
PHP_GIT2_FE(git_index_remove_bypath,ZIF_GIT_INDEX_REMOVE_BYPATH,NULL) \
PHP_GIT2_FE(git_index_remove_directory,ZIF_GIT_INDEX_REMOVE_DIRECTORY,NULL) \
PHP_GIT2_FE(git_index_set_caps,ZIF_GIT_INDEX_SET_CAPS,NULL) \
PHP_GIT2_FE(git_index_set_version,ZIF_GIT_INDEX_SET_VERSION,NULL) \
PHP_GIT2_FE(git_index_update_all,ZIF_GIT_INDEX_UPDATE_ALL,NULL) \
PHP_GIT2_FE(git_index_version,ZIF_GIT_INDEX_VERSION,NULL) \
PHP_GIT2_FE(git_index_write,ZIF_GIT_INDEX_WRITE,NULL) \
PHP_GIT2_FE(git_index_write_tree,ZIF_GIT_INDEX_WRITE_TREE,NULL) \
PHP_GIT2_FE(git_index_write_tree_to,ZIF_GIT_INDEX_WRITE_TREE_TO,NULL)
#endif
/*
* Local Variables:
* mode:c++
* indent-tabs-mode:nil
* tab-width:4
* End:
*/