blob: 2876a1f15a32bed46814cdc1ef3a206aad34f8a8 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#ifndef APACHE_GEODE_C_CACHE_H
#define APACHE_GEODE_C_CACHE_H
#include "geode/internal/geode_base.h"
#ifdef __cplusplus
#include <cstdint>
#else
#include <stdint.h>
#endif
#ifndef __cplusplus
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
struct apache_geode_cache_s;
typedef struct apache_geode_cache_s apache_geode_cache_t;
struct apache_geode_pool_manager_s;
typedef struct apache_geode_pool_manager_s apache_geode_pool_manager_t;
struct apache_geode_region_factory_s;
typedef struct apache_geode_region_factory_s apache_geode_region_factory_t;
APACHE_GEODE_C_EXPORT void apache_geode_DestroyCache(apache_geode_cache_t* cache);
APACHE_GEODE_C_EXPORT bool apache_geode_Cache_GetPdxIgnoreUnreadFields(
apache_geode_cache_t* cache);
APACHE_GEODE_C_EXPORT bool apache_geode_Cache_GetPdxReadSerialized(
apache_geode_cache_t* cache);
APACHE_GEODE_C_EXPORT apache_geode_pool_manager_t*
apache_geode_Cache_GetPoolManager(apache_geode_cache_t* cache);
#ifdef __cplusplus
APACHE_GEODE_C_EXPORT apache_geode_region_factory_t*
apache_geode_Cache_CreateRegionFactory(apache_geode_cache_t* cache,
std::int32_t regionType);
#else
APACHE_GEODE_C_EXPORT apache_geode_region_factory_t*
apache_geode_Cache_CreateRegionFactory(apache_geode_cache_t* cache,
int32_t regionType);
#endif
APACHE_GEODE_C_EXPORT const char* apache_geode_Cache_GetName(
apache_geode_cache_t* cache);
APACHE_GEODE_C_EXPORT void apache_geode_Cache_Close(apache_geode_cache_t* cache,
bool keepalive);
APACHE_GEODE_C_EXPORT bool apache_geode_Cache_IsClosed(
apache_geode_cache_t* cache);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // APACHE_GEODE_C_CACHE_H