callbacks.json 16 KB
Newer Older
1
{
John Haley's avatar
John Haley committed
2
  "git_attr_foreach_cb": {
3 4
    "args": [
      {
John Haley's avatar
John Haley committed
5
        "name": "name",
6 7 8
        "cType": "const char *"
      },
      {
John Haley's avatar
John Haley committed
9 10
        "name": "value",
        "cType": "const char *"
11 12 13 14 15 16
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
John Haley's avatar
John Haley committed
17 18 19 20 21 22
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
23
  },
John Haley's avatar
John Haley committed
24
  "git_blob_chunk_cb": {
25 26
    "args": [
      {
John Haley's avatar
John Haley committed
27 28
        "name": "entry",
        "cType": "const git_config_entry *"
29
      },
30 31 32 33 34
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
John Haley's avatar
John Haley committed
35 36 37 38 39 40
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
41
  },
John Haley's avatar
John Haley committed
42
  "git_checkout_notify_cb": {
43 44
    "args": [
      {
John Haley's avatar
John Haley committed
45 46
        "name": "why",
        "cType": "git_checkout_notify_t"
47 48
      },
      {
John Haley's avatar
John Haley committed
49
        "name": "path",
50 51 52
        "cType": "const char *"
      },
      {
John Haley's avatar
John Haley committed
53 54
        "name": "baseline",
        "cType": "const git_diff_file *"
55 56
      },
      {
John Haley's avatar
John Haley committed
57 58 59 60 61 62
        "name": "target",
        "cType": "const git_diff_file *"
      },
      {
        "name": "workdir",
        "cType": "const git_diff_file *"
63
      },
64 65 66 67 68
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
John Haley's avatar
John Haley committed
69 70 71 72 73 74
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
75
  },
John Haley's avatar
John Haley committed
76
  "git_checkout_progress_cb": {
77 78
    "args": [
      {
John Haley's avatar
John Haley committed
79 80
        "name": "path",
        "cType": "const char *"
81 82
      },
      {
John Haley's avatar
John Haley committed
83 84
        "name": "completed_steps",
        "cType": "size_t"
85 86
      },
      {
John Haley's avatar
John Haley committed
87 88
        "name": "total_steps",
        "cType": "size_t"
89 90 91 92 93 94
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
John Haley's avatar
John Haley committed
95 96 97 98
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
Stjepan Rajko's avatar
Stjepan Rajko committed
99 100
      "error": -1,
      "throttle": 100
John Haley's avatar
John Haley committed
101
    }
102
  },
Tyler Wanek's avatar
Tyler Wanek committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
  "git_checkout_perfdata_cb": {
    "args": [
      {
        "name": "perfdata",
        "cType": "const git_checkout_perfdata *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
121
  "git_config_foreach_cb": {
122 123
    "args": [
      {
John Haley's avatar
John Haley committed
124 125
        "name": "entry",
        "cType": "const git_config_entry *"
126 127 128 129 130 131
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
John Haley's avatar
John Haley committed
132 133 134 135 136 137
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
Steve Smith's avatar
Steve Smith committed
138
  },
John Haley's avatar
John Haley committed
139
  "git_cred_acquire_cb": {
Steve Smith's avatar
Steve Smith committed
140 141
    "args": [
      {
John Haley's avatar
John Haley committed
142 143 144
        "name": "cred",
        "cType": "git_cred **",
        "isReturn": true
Steve Smith's avatar
Steve Smith committed
145 146
      },
      {
John Haley's avatar
John Haley committed
147 148
        "name": "url",
        "cType": "const char *"
Steve Smith's avatar
Steve Smith committed
149 150
      },
      {
John Haley's avatar
John Haley committed
151
        "name": "username_from_url",
John Haley's avatar
John Haley committed
152
        "cType": "const char *"
Steve Smith's avatar
Steve Smith committed
153 154
      },
      {
John Haley's avatar
John Haley committed
155
        "name": "allowed_types",
Steve Smith's avatar
Steve Smith committed
156 157 158 159 160 161 162
        "cType": "unsigned int"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
John Haley's avatar
John Haley committed
163 164 165 166 167 168
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
169
  },
Tyler Wanek's avatar
Tyler Wanek committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
  "git_diff_binary_cb": {
    "args": [
      {
        "name": "delta",
        "cType": "const git_diff_delta *"
      },
      {
        "name": "binary",
        "cType": "const git_diff_binary *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 0,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
192
  "git_diff_file_cb": {
193 194
    "args": [
      {
John Haley's avatar
John Haley committed
195 196
        "name": "delta",
        "cType": "const git_diff_delta *"
197 198
      },
      {
John Haley's avatar
John Haley committed
199 200
        "name": "progress",
        "cType": "float"
201 202 203 204 205 206 207 208 209 210
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
Stjepan Rajko's avatar
Stjepan Rajko committed
211 212
      "error": -1,
      "throttle": 100
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
    }
  },
  "git_diff_hunk_cb": {
    "args": [
      {
        "name": "delta",
        "cType": "const git_diff_delta *"
      },
      {
        "name": "hunk",
        "cType": "const git_diff_hunk *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
237
  "git_diff_line_cb": {
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
    "args": [
      {
        "name": "delta",
        "cType": "const git_diff_delta *"
      },
      {
        "name": "hunk",
        "cType": "const git_diff_hunk *"
      },
      {
        "name": "line",
        "cType": "const git_diff_line *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
263
  "git_diff_notify_cb": {
264 265
    "args": [
      {
John Haley's avatar
John Haley committed
266 267 268 269 270 271
        "name": "diff_so_far",
        "cType": "const git_diff *"
      },
      {
        "name": "delta_to_add",
        "cType": "git_diff_delta *"
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
      },
      {
        "name": "matched_pathspec",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
John Haley's avatar
John Haley committed
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
  },"git_diff_progress_cb": {
    "args": [
      {
        "name": "diff_so_far",
        "cType": "const git_diff *"
      },
      {
        "name": "old_path",
        "cType": "const char *"
      },
      {
        "name": "new_path",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
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
  "git_filter_apply_fn": { 
    "args": [ 
      { 
        "name": "self", 
        "cType": "git_filter *" 
      }, 
      { 
        "name": "payload", 
        "cType": "void **" 
      }, 
      { 
        "name": "to", 
        "cType": "git_buf *" 
      }, 
      { 
        "name": "from", 
        "cType": "const git_buf *" 
      }, 
      { 
        "name": "src", 
        "cType": "const git_filter_source *" 
      } 
    ], 
    "return": { 
      "type": "int", 
      "noResults": -30, 
      "success": 0, 
      "error": -1 
    } 
  }, 
  "git_filter_check_fn": { 
    "args": [ 
      { 
        "name": "self", 
        "cType": "git_filter *" 
      }, 
      { 
        "name": "payload",
        "cType": "void **"
      }, 
      { 
        "name": "src",
        "cType": "const git_filter_source *"
      }, 
      { 
        "name": "attr_values", 
        "cType": "const char **" 
      } 
    ], 
    "return": { 
      "type": "int", 
      "noResults": -30, 
      "success": 0, 
      "error": -1 
    } 
  }, 
  "git_filter_cleanup_fn": { 
    "args": [ 
      { 
        "name": "self", 
        "cType": "git_filter *" 
      }, 
      { 
        "name": "payload", 
        "cType": "void *" 
      } 
    ], 
    "return": { 
      "type": "void" 
    } 
  }, 
  "git_filter_init_fn": { 
    "args": [ 
      { 
        "name": "self", 
        "cType": "git_filter *" 
      } 
    ], 
    "return": { 
      "type": "int", 
      "noResults": 0,
      "success": 0, 
      "error": -1 
    } 
  }, 
  "git_filter_shutdown_fn": { 
    "args": [ 
      { 
        "name": "self", 
        "cType": "git_filter *" 
      } 
    ], 
    "return": { 
      "type": "void" 
    } 
  },
John Haley's avatar
John Haley committed
410
  "git_index_matched_path_cb": {
411 412
    "args": [
      {
John Haley's avatar
John Haley committed
413 414
        "name": "path",
        "cType": "const char *"
415 416
      },
      {
John Haley's avatar
John Haley committed
417 418
        "name": "matched_pathspec",
        "cType": "const char *"
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
  "git_note_foreach_cb": {
    "args": [
      {
Tim's avatar
Tim committed
435 436 437 438 439
        "name": "blob_id",
        "cType": "const git_oid *"
      },
      {
        "name": "annotated_object_id",
440 441 442 443 444 445 446 447 448
        "cType": "const git_oid *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
Tim's avatar
Tim committed
449
      "noResults": 0,
450 451 452 453
      "success": 0,
      "error": -1
    }
  },
454 455 456 457 458 459 460 461 462 463 464 465
  "git_odb_foreach_cb": {
    "args": [
      {
        "name": "id",
        "cType": "const git_oid *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ]
  },
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
  "git_packbuilder_foreach_cb": {
    "args": [
      {
        "name": "buf",
        "cType": "void *"
      },
      {
        "name": "size",
        "cType": "size_t"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
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
  "git_remote_create_cb": {
    "args": [
      {
        "name": "out",
        "cType": "git_repository **",
        "isReturn": true
      },
      {
        "name": "repo",
        "cType": "git_repository *"
      },
      {
        "name": "name",
        "cType": "const char *"
      },
      {
        "name": "url",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 0,
      "success": 0,
      "error": 1
    }
  },
  "git_repository_create_cb": {
    "args": [
      {
        "name": "out",
        "cType": "git_repository **",
        "isReturn": true
      },
      {
        "name": "path",
        "cType": "const char *"
      },
      {
        "name": "bare",
        "cType": "int"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 0,
      "success": 0,
      "error": 1
    }
  },
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
  "git_reference_foreach_cb": {
    "args": [
      {
        "name": "refname",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
  "git_reference_foreach_name_cb": {
    "args": [
      {
        "name": "name",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
Steve Smith's avatar
Steve Smith committed
582
  "git_repository_fetchhead_foreach_cb": {
583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606
    "args": [
      {
        "name": "refname",
        "cType": "const char *"
      },
      {
        "name": "remote_url",
        "cType": "const char *"
      },
      {
        "name": "oid",
        "cType": "const git_oid *"
      },
      {
        "name": "is_merge",
        "cType": "unsigned int"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
607
      "noResults": 0,
608
      "success": 0,
609
      "error": 1
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
    }
  },
  "git_repository_mergehead_foreach_cb": {
    "args": [
      {
        "name": "oid",
        "cType": "const git_oid *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
625
      "noResults": 0,
626
      "success": 0,
627
      "error": 1
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
    }
  },
  "git_revwalk_hide_cb": {
    "args": [
      {
        "name": "commit_id",
        "cType": "const git_oid *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670
  "git_smart_subtransport_cb": {
    "args": [
      {
        "name": "out",
        "cType": "git_smart_subtransport **",
        "isReturn": true
      },
      {
        "name": "owner",
        "cType": "git_transport*"
      },
      {
        "name": "param",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 0,
      "success": 0,
      "error": -1
    }
  },
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
  "git_stash_apply_progress_cb": {
    "args": [
      {
        "name": "progress",
        "cType": "git_stash_apply_progress_t"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults":0,
      "success": 0,
Stjepan Rajko's avatar
Stjepan Rajko committed
686 687
      "error": -1,
      "throttle": 100
688 689
    }
  },
John Haley's avatar
John Haley committed
690
  "git_stash_cb": {
691 692
    "args": [
      {
John Haley's avatar
John Haley committed
693 694 695 696 697
        "name": "index",
        "cType": "size_t"
      },
      {
        "name": "message",
698 699 700
        "cType": "const char *"
      },
      {
John Haley's avatar
John Haley committed
701
        "name": "stash_id",
John Haley's avatar
John Haley committed
702
        "cType": "const git_oid *"
703 704 705 706 707 708 709 710
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
John Haley's avatar
John Haley committed
711
      "noResults":0,
712 713 714 715
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
716
  "git_status_cb": {
717 718
    "args": [
      {
John Haley's avatar
John Haley committed
719
        "name": "path",
720 721 722
        "cType": "const char *"
      },
      {
John Haley's avatar
John Haley committed
723 724
        "name": "status_flags",
        "cType": "unsigned int"
725 726 727 728 729 730 731 732
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
733
      "noResults": 0,
734 735 736 737
      "success": 0,
      "error": -1
    }
  },
738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759
  "git_submodule_cb": {
    "args": [
      {
        "name": "sm",
        "cType": "git_submodule *"
      },
      {
        "name": "name",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 0,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
760
  "git_tag_foreach_cb": {
761 762
    "args": [
      {
John Haley's avatar
John Haley committed
763 764 765 766 767 768
        "name": "name",
        "cType": "const char *"
      },
      {
        "name": "oid",
        "cType": "const git_oid *"
769 770 771 772 773 774 775 776 777 778 779 780 781
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
782
  "git_transfer_progress_cb": {
783 784
    "args": [
      {
John Haley's avatar
John Haley committed
785 786
        "name": "stats",
        "cType": "const git_transfer_progress *"
787 788 789 790 791 792 793 794
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
John Haley's avatar
John Haley committed
795
      "noResults": 0,
796
      "success": 0,
Stjepan Rajko's avatar
Stjepan Rajko committed
797 798
      "error": -1,
      "throttle": 100
799 800
    }
  },
John Haley's avatar
John Haley committed
801
  "git_transport_cb": {
802 803
    "args": [
      {
John Haley's avatar
John Haley committed
804
        "name": "out",
John Haley's avatar
John Haley committed
805
        "cType": "git_transport **"
806 807
      },
      {
John Haley's avatar
John Haley committed
808
        "name": "owner",
John Haley's avatar
John Haley committed
809
        "cType": "git_remote *"
John Haley's avatar
John Haley committed
810 811
      },
      {
John Haley's avatar
John Haley committed
812 813 814
        "name": "param",
        "cType": "void *",
        "payload": true
John Haley's avatar
John Haley committed
815 816 817 818 819 820 821 822 823
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849
  "git_transport_certificate_check_cb": {
    "args": [
      {
        "name": "cert",
        "cType": "git_cert *"
      },
      {
        "name": "valid",
        "cType": "int"
      },
      {
        "name": "host",
        "cType": "const char *"
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
850 851 852 853
  "git_transport_message_cb": {
    "args": [
      {
        "name": "str",
854 855 856
        "cType": "const char *"
      },
      {
John Haley's avatar
John Haley committed
857 858
        "name": "len",
        "cType": "int"
859 860 861 862 863 864 865 866 867 868 869 870 871
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
  },
John Haley's avatar
John Haley committed
872
  "git_treebuilder_filter_cb": {
873 874
    "args": [
      {
John Haley's avatar
John Haley committed
875 876
        "name": "entry",
        "cType": "const git_tree_entry *"
877 878 879 880 881 882 883 884 885 886 887 888
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
Steve Smith's avatar
Steve Smith committed
889
  },
John Haley's avatar
John Haley committed
890
  "git_treewalk_cb": {
Steve Smith's avatar
Steve Smith committed
891
    "args": [
John Haley's avatar
John Haley committed
892 893 894 895
      {
        "name": "root",
        "cType": "const char *"
      },
Steve Smith's avatar
Steve Smith committed
896 897
      {
        "name": "entry",
John Haley's avatar
John Haley committed
898
        "cType": "const git_tree_entry *"
Steve Smith's avatar
Steve Smith committed
899 900 901 902 903 904 905 906 907 908 909 910
      },
      {
        "name": "payload",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932
  },
  "git_push_update_reference_cb": {
    "args": [
      {
        "name": "refname",
        "cType": "const char *"
      },
      {
        "name": "status",
        "cType": "const char *"
      },
      {
        "name": "data",
        "cType": "void *"
      }
    ],
    "return": {
      "type": "int",
      "noResults": 1,
      "success": 0,
      "error": -1
    }
933 934
  }
}