GDAL

gdal_adbc.h
Go to the documentation of this file.
1/******************************************************************************
2 * Name: gdal_adbc.h
3 * Project: GDAL Core
4 * Purpose: GDAL Core ADBC related declarations.
5 * Author: Even Rouault <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2024, Even Rouault <even dot rouault at spatialys.com>
9 * Copyright (c) 2024, Dewey Dunnington <dewey@voltrondata.com>
10 *
11 * SPDX-License-Identifier: MIT
12 ****************************************************************************/
13
14#ifndef GDAL_ADBC_H_INCLUDED
15#define GDAL_ADBC_H_INCLUDED
16
29#include "cpl_port.h"
30
31#include <stdint.h>
32
33 CPL_C_START
34
36 typedef uint8_t (*GDALAdbcLoadDriverFunc)(const char *driver_name,
37 const char *entrypoint, int version,
38 void *driver, void *error);
39
40 void CPL_DLL GDALSetAdbcLoadDriverOverride(GDALAdbcLoadDriverFunc init_func);
41
42 GDALAdbcLoadDriverFunc CPL_DLL GDALGetAdbcLoadDriverOverride(void);
43
44 CPL_C_END
45
46#endif
cpl_port.h
Core portability definitions for CPL.
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
GDALGetAdbcLoadDriverOverride
GDALAdbcLoadDriverFunc GDALGetAdbcLoadDriverOverride(void)
Gets the ADBC driver load function.
Definition gdal_adbc.cpp:46
GDALSetAdbcLoadDriverOverride
void GDALSetAdbcLoadDriverOverride(GDALAdbcLoadDriverFunc init_func)
When set, it is used by the OGR ADBC driver to populate AdbcDriver callbacks.
Definition gdal_adbc.cpp:34
GDALAdbcLoadDriverFunc
uint8_t(* GDALAdbcLoadDriverFunc)(const char *driver_name, const char *entrypoint, int version, void *driver, void *error)
Type of a callback function to load a ADBC driver.
Definition gdal_adbc.h:36