| /* |
| * 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_POOL_FACTORY_H |
| #define APACHE_GEODE_C_POOL_FACTORY_H |
| |
| #include "geode/internal/geode_base.h" |
| |
| #ifdef __cplusplus |
| #include <cstdint> |
| #else |
| #include <stdint.h> |
| #endif |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif // __cplusplus |
| |
| struct apache_geode_pool_factory_s; |
| typedef struct apache_geode_pool_factory_s apache_geode_pool_factory_t; |
| |
| struct apache_geode_pool_s; |
| typedef struct apache_geode_pool_s apache_geode_pool_t; |
| |
| APACHE_GEODE_C_EXPORT apache_geode_pool_t* apache_geode_PoolFactory_CreatePool( |
| apache_geode_pool_factory_t* poolFactory, const char* name); |
| |
| #ifdef __cplusplus |
| APACHE_GEODE_C_EXPORT void apache_geode_PoolFactory_AddLocator( |
| apache_geode_pool_factory_t* poolFactory, const char* hostname, |
| const std::uint16_t port); |
| #else |
| APACHE_GEODE_C_EXPORT void apache_geode_PoolFactory_AddLocator( |
| apache_geode_pool_factory_t* poolFactory, const char* hostname, |
| const uint16_t port); |
| #endif |
| |
| APACHE_GEODE_C_EXPORT void apache_geode_DestroyPoolFactory( |
| apache_geode_pool_factory_t* poolFactory); |
| |
| #ifdef __cplusplus |
| } |
| #endif // __cplusplus |
| |
| #endif // APACHE_GEODE_C_POOL_FACTORY_H |