KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kigit_driver_registry.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 3
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, you may find one here:
18
* http://www.gnu.org/licenses/gpl-3.0.html
19
*/
20
21
#ifndef KIGIT_DRIVER_REGISTRY_H
22
#define KIGIT_DRIVER_REGISTRY_H
23
24
#include <
kicommon.h
>
25
26
#include <git2/buffer.h>
27
#include <git2/sys/merge.h>
28
29
30
namespace
KIGIT
31
{
32
47
using
MERGE_APPLY_FN
= int ( * )(
const
git_merge_driver_source* src,
48
const
char
** path_out,
49
unsigned
int
* mode_out,
50
git_buf* merged_out );
51
52
67
KICOMMON_API
bool
RegisterMergeDriver
(
const
char
* aName,
MERGE_APPLY_FN
aApply );
68
69
}
// namespace KIGIT
70
71
#endif
// KIGIT_DRIVER_REGISTRY_H
kicommon.h
KICOMMON_API
#define KICOMMON_API
Definition
kicommon.h:27
KIGIT
Definition
git_compare_handler.cpp:36
KIGIT::MERGE_APPLY_FN
int(*)(const git_merge_driver_source *src, const char ** path_out, unsigned int * mode_out, git_buf * merged_out) MERGE_APPLY_FN
Signature for a KiCad merge-driver apply function.
Definition
kigit_driver_registry.h:47
KIGIT::RegisterMergeDriver
bool RegisterMergeDriver(const char *aName, MERGE_APPLY_FN aApply)
Register a KiCad merge driver with libgit2.
Definition
kigit_driver_registry.cpp:80
src
common
git
kigit_driver_registry.h
Generated on Fri Jun 26 2026 00:05:32 for KiCad PCB EDA Suite by
1.13.2