.gitignore: add some more IDE / tools related file
[babeltrace.git] / src / lib / object-pool.h
index 04731c5d51085509144e61a4d7acf85a318dd8ce..c1558de1fe6829dfb0aa96e43de925fe809124d4 100644 (file)
@@ -1,28 +1,12 @@
-#ifndef BABELTRACE_OBJECT_POOL_INTERNAL_H
-#define BABELTRACE_OBJECT_POOL_INTERNAL_H
-
 /*
- * Copyright (c) 2018 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
+ * SPDX-License-Identifier: MIT
  *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * Copyright (c) 2018 Philippe Proulx <pproulx@efficios.com>
  */
 
+#ifndef BABELTRACE_LIB_OBJECT_POOL_H
+#define BABELTRACE_LIB_OBJECT_POOL_H
+
 /*
  * This is a generic object pool to avoid memory allocation/deallocation
  * for objects of which the lifespan is typically short, but which are
@@ -88,7 +72,6 @@ struct bt_object_pool {
 /*
  * Initializes an object pool which is already allocated.
  */
-BT_HIDDEN
 int bt_object_pool_initialize(struct bt_object_pool *pool,
                bt_object_pool_new_object_func new_object_func,
                bt_object_pool_destroy_object_func destroy_object_func,
@@ -97,7 +80,6 @@ int bt_object_pool_initialize(struct bt_object_pool *pool,
 /*
  * Finalizes an object pool without deallocating it.
  */
-BT_HIDDEN
 void bt_object_pool_finalize(struct bt_object_pool *pool);
 
 /*
@@ -169,4 +151,4 @@ void bt_object_pool_recycle_object(struct bt_object_pool *pool, void *obj)
                pool, pool->size, pool->objects->len, obj);
 }
 
-#endif /* BABELTRACE_OBJECT_POOL_INTERNAL_H */
+#endif /* BABELTRACE_LIB_OBJECT_POOL_H */
This page took 0.026246 seconds and 4 git commands to generate.