incubator-celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abroekh...@apache.org
Subject svn commit: r1136654 - in /incubator/celix/trunk: celix_test/CMakeLists.txt utils/public/include/array_list.h utils/public/include/exports.h utils/public/include/hash_map.h utils/public/include/linked_list_iterator.h utils/public/include/linkedlist.h
Date Thu, 16 Jun 2011 20:30:24 GMT
Author: abroekhuis
Date: Thu Jun 16 20:30:23 2011
New Revision: 1136654

URL: http://svn.apache.org/viewvc?rev=1136654&view=rev
Log:
Added macros for dllexport for Visual Studio so that lib files are generated for DLL linking.

Added:
    incubator/celix/trunk/utils/public/include/exports.h   (with props)
Modified:
    incubator/celix/trunk/celix_test/CMakeLists.txt
    incubator/celix/trunk/utils/public/include/array_list.h
    incubator/celix/trunk/utils/public/include/hash_map.h
    incubator/celix/trunk/utils/public/include/linked_list_iterator.h
    incubator/celix/trunk/utils/public/include/linkedlist.h

Modified: incubator/celix/trunk/celix_test/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/celix_test/CMakeLists.txt?rev=1136654&r1=1136653&r2=1136654&view=diff
==============================================================================
--- incubator/celix/trunk/celix_test/CMakeLists.txt (original)
+++ incubator/celix/trunk/celix_test/CMakeLists.txt Thu Jun 16 20:30:23 2011
@@ -17,26 +17,25 @@
 
 include(FindCUnit)
 
-include_directories("${PROJECT_SOURCE_DIR}/celix")
 include_directories(${CUNIT_INCLUDE_DIRS})
 include_directories("${PROJECT_SOURCE_DIR}/utils/public/include")
 include_directories("${PROJECT_SOURCE_DIR}/utils/private/include")
 
 add_executable(hash_map_test hash_map_test.c)
-target_link_libraries(hash_map_test framework ${CUNIT_LIBRARIES})
+target_link_libraries(hash_map_test utils ${CUNIT_LIBRARIES})
 
 add_executable(hash_map_test_hash hash_map_test_hash.c)
-target_link_libraries(hash_map_test_hash framework ${CUNIT_LIBRARIES})
+target_link_libraries(hash_map_test_hash utils ${CUNIT_LIBRARIES})
 
 add_executable(array_list_test array_list_test.c)
-target_link_libraries(array_list_test framework ${CUNIT_LIBRARIES})
+target_link_libraries(array_list_test utils ${CUNIT_LIBRARIES})
 
-add_executable(framework_test framework_test.c)
-target_link_libraries(framework_test framework ${CUNIT_LIBRARIES})
+#add_executable(framework_test framework_test.c)
+#target_link_libraries(framework_test utils ${CUNIT_LIBRARIES})
 
 enable_testing()
 #add_test (tester ${EXECUTABLE_OUTPUT_PATH}/tester)
 add_test (hash_map_test ${EXECUTABLE_OUTPUT_PATH}/hash_map_test)
 add_test (hash_map_test_hash ${EXECUTABLE_OUTPUT_PATH}/hash_map_test_hash)
 add_test (array_list_test ${EXECUTABLE_OUTPUT_PATH}/array_list_test)
-add_test (framework_test ${EXECUTABLE_OUTPUT_PATH}/framework_test)
\ No newline at end of file
+#add_test (framework_test ${EXECUTABLE_OUTPUT_PATH}/framework_test)
\ No newline at end of file

Modified: incubator/celix/trunk/utils/public/include/array_list.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/utils/public/include/array_list.h?rev=1136654&r1=1136653&r2=1136654&view=diff
==============================================================================
--- incubator/celix/trunk/utils/public/include/array_list.h (original)
+++ incubator/celix/trunk/utils/public/include/array_list.h Thu Jun 16 20:30:23 2011
@@ -27,34 +27,35 @@
 #define ARRAY_LIST_H_
 
 #include "celixbool.h"
+#include "exports.h"
 
 typedef struct arrayList * ARRAY_LIST;
 
 typedef struct arrayListIterator * ARRAY_LIST_ITERATOR;
 
-ARRAY_LIST arrayList_create(void);
-void arrayList_trimToSize(ARRAY_LIST list);
-void arrayList_ensureCapacity(ARRAY_LIST list, int capacity);
-unsigned int arrayList_size(ARRAY_LIST list);
-bool arrayList_isEmpty(ARRAY_LIST list);
-bool arrayList_contains(ARRAY_LIST list, void * element);
-int arrayList_indexOf(ARRAY_LIST list, void * element);
-int arrayList_lastIndexOf(ARRAY_LIST list, void * element);
-void * arrayList_get(ARRAY_LIST list, unsigned int index);
-void * arrayList_set(ARRAY_LIST list, unsigned int index, void * element);
-bool arrayList_add(ARRAY_LIST list, void * element);
-int arrayList_addIndex(ARRAY_LIST list, unsigned int index, void * element);
-void * arrayList_remove(ARRAY_LIST list, unsigned int index);
-bool arrayList_removeElement(ARRAY_LIST list, void * element);
-void arrayList_clear(ARRAY_LIST list);
-ARRAY_LIST arrayList_clone(ARRAY_LIST list);
-
-ARRAY_LIST_ITERATOR arrayListIterator_create(ARRAY_LIST list);
-void arrayListIterator_destroy(ARRAY_LIST_ITERATOR iterator);
-bool arrayListIterator_hasNext(ARRAY_LIST_ITERATOR iterator);
-void * arrayListIterator_next(ARRAY_LIST_ITERATOR iterator);
-bool arrayListIterator_hasPrevious(ARRAY_LIST_ITERATOR iterator);
-void * arrayListIterator_previous(ARRAY_LIST_ITERATOR iterator);
-void arrayListIterator_remove(ARRAY_LIST_ITERATOR iterator);
+UTILS_EXPORT ARRAY_LIST arrayList_create(void);
+UTILS_EXPORT void arrayList_trimToSize(ARRAY_LIST list);
+UTILS_EXPORT void arrayList_ensureCapacity(ARRAY_LIST list, int capacity);
+UTILS_EXPORT unsigned int arrayList_size(ARRAY_LIST list);
+UTILS_EXPORT bool arrayList_isEmpty(ARRAY_LIST list);
+UTILS_EXPORT bool arrayList_contains(ARRAY_LIST list, void * element);
+UTILS_EXPORT int arrayList_indexOf(ARRAY_LIST list, void * element);
+UTILS_EXPORT int arrayList_lastIndexOf(ARRAY_LIST list, void * element);
+UTILS_EXPORT void * arrayList_get(ARRAY_LIST list, unsigned int index);
+UTILS_EXPORT void * arrayList_set(ARRAY_LIST list, unsigned int index, void * element);
+UTILS_EXPORT bool arrayList_add(ARRAY_LIST list, void * element);
+UTILS_EXPORT int arrayList_addIndex(ARRAY_LIST list, unsigned int index, void * element);
+UTILS_EXPORT void * arrayList_remove(ARRAY_LIST list, unsigned int index);
+UTILS_EXPORT bool arrayList_removeElement(ARRAY_LIST list, void * element);
+UTILS_EXPORT void arrayList_clear(ARRAY_LIST list);
+UTILS_EXPORT ARRAY_LIST arrayList_clone(ARRAY_LIST list);
+
+UTILS_EXPORT ARRAY_LIST_ITERATOR arrayListIterator_create(ARRAY_LIST list);
+UTILS_EXPORT void arrayListIterator_destroy(ARRAY_LIST_ITERATOR iterator);
+UTILS_EXPORT bool arrayListIterator_hasNext(ARRAY_LIST_ITERATOR iterator);
+UTILS_EXPORT void * arrayListIterator_next(ARRAY_LIST_ITERATOR iterator);
+UTILS_EXPORT bool arrayListIterator_hasPrevious(ARRAY_LIST_ITERATOR iterator);
+UTILS_EXPORT void * arrayListIterator_previous(ARRAY_LIST_ITERATOR iterator);
+UTILS_EXPORT void arrayListIterator_remove(ARRAY_LIST_ITERATOR iterator);
 
 #endif /* ARRAY_LIST_H_ */

Added: incubator/celix/trunk/utils/public/include/exports.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/utils/public/include/exports.h?rev=1136654&view=auto
==============================================================================
--- incubator/celix/trunk/utils/public/include/exports.h (added)
+++ incubator/celix/trunk/utils/public/include/exports.h Thu Jun 16 20:30:23 2011
@@ -0,0 +1,47 @@
+/**
+ *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.
+ */
+/*
+ * exports.h
+ *
+ *  Created on: Jun 16, 2011
+ *      Author: alexander
+ */
+
+#ifndef EXPORTS_H_
+#define EXPORTS_H_
+
+/* Cmake will define utils_EXPORTS on Windows when it
+configures to build a shared library. If you are going to use
+another build system on windows or create the visual studio
+projects by hand you need to define utils_EXPORTS when
+building a DLL on windows.
+*/
+// We are using the Visual Studio Compiler and building Shared libraries
+
+#if defined (_WIN32)
+  #if defined(utils_EXPORTS)
+    #define  UTILS_EXPORT __declspec(dllexport)
+  #else
+    #define  UTILS_EXPORT __declspec(dllimport)
+  #endif /* utils_EXPORTS */
+#else /* defined (_WIN32) */
+#define UTILS_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif /* EXPORTS_H_ */

Propchange: incubator/celix/trunk/utils/public/include/exports.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/celix/trunk/utils/public/include/hash_map.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/utils/public/include/hash_map.h?rev=1136654&r1=1136653&r2=1136654&view=diff
==============================================================================
--- incubator/celix/trunk/utils/public/include/hash_map.h (original)
+++ incubator/celix/trunk/utils/public/include/hash_map.h Thu Jun 16 20:30:23 2011
@@ -27,6 +27,7 @@
 #define HASH_MAP_H_
 
 #include "celixbool.h"
+#include "exports.h"
 
 typedef struct hashMapEntry * HASH_MAP_ENTRY;
 typedef struct hashMap * HASH_MAP;
@@ -37,52 +38,52 @@ typedef struct hashMapKeySet * HASH_MAP_
 typedef struct hashMapValues * HASH_MAP_VALUES;
 typedef struct hashMapEntrySet * HASH_MAP_ENTRY_SET;
 
-HASH_MAP hashMap_create(unsigned int (*keyHash)(void *), unsigned int (*valueHash)(void *),
+UTILS_EXPORT HASH_MAP hashMap_create(unsigned int (*keyHash)(void *), unsigned int (*valueHash)(void
*),
 		int (*keyEquals)(void *, void *), int (*valueEquals)(void *, void *));
-void hashMap_destroy(HASH_MAP map, bool freeKeys, bool freeValues);
-int hashMap_size(HASH_MAP map);
-bool hashMap_isEmpty(HASH_MAP map);
-void * hashMap_get(HASH_MAP map, void * key);
-bool hashMap_containsKey(HASH_MAP map, void * key);
-HASH_MAP_ENTRY hashMap_getEntry(HASH_MAP map, void * key);
-void * hashMap_put(HASH_MAP map, void * key, void * value);
-void * hashMap_remove(HASH_MAP map, void * key);
-void hashMap_clear(HASH_MAP map, bool freeKey, bool freeValue);
-bool hashMap_containsValue(HASH_MAP map, void * value);
-
-HASH_MAP_ITERATOR hashMapIterator_create(HASH_MAP map);
-void hashMapIterator_destroy(HASH_MAP_ITERATOR iterator);
-bool hashMapIterator_hasNext(HASH_MAP_ITERATOR iterator);
-void hashMapIterator_remove(HASH_MAP_ITERATOR iterator);
-void * hashMapIterator_nextValue(HASH_MAP_ITERATOR iterator);
-void * hashMapIterator_nextKey(HASH_MAP_ITERATOR iterator);
-HASH_MAP_ENTRY hashMapIterator_nextEntry(HASH_MAP_ITERATOR iterator);
-
-HASH_MAP_KEY_SET hashMapKeySet_create(HASH_MAP map);
-int hashMapKeySet_size(HASH_MAP_KEY_SET keySet);
-bool hashMapKeySet_contains(HASH_MAP_KEY_SET keySet, void * key);
-bool hashMapKeySet_remove(HASH_MAP_KEY_SET keySet, void * key);
-void hashMapKeySet_clear(HASH_MAP_KEY_SET keySet);
-bool hashMapKeySet_isEmpty(HASH_MAP_KEY_SET keySet);
-
-HASH_MAP_VALUES hashMapValues_create(HASH_MAP map);
-void hashMapValues_destroy(HASH_MAP_VALUES values);
-HASH_MAP_ITERATOR hashMapValues_iterator(HASH_MAP_VALUES values);
-int hashMapValues_size(HASH_MAP_VALUES values);
-bool hashMapValues_contains(HASH_MAP_VALUES values, void * o);
-void hashMapValues_toArray(HASH_MAP_VALUES values, void* *array[], unsigned int *size);
-bool hashMapValues_remove(HASH_MAP_VALUES values, void * o);
-void hashMapValues_clear(HASH_MAP_VALUES values);
-bool hashMapValues_isEmpty(HASH_MAP_VALUES values);
-
-HASH_MAP_ENTRY_SET hashMapEntrySet_create(HASH_MAP map);
-int hashMapEntrySet_size(HASH_MAP_ENTRY_SET entrySet);
-bool hashMapEntrySet_contains(HASH_MAP_ENTRY_SET entrySet, HASH_MAP_ENTRY entry);
-bool hashMapEntrySet_remove(HASH_MAP_VALUES entrySet, HASH_MAP_ENTRY entry);
-void hashMapEntrySet_clear(HASH_MAP_ENTRY_SET entrySet);
-bool hashMapEntrySet_isEmpty(HASH_MAP_ENTRY_SET entrySet);
+UTILS_EXPORT void hashMap_destroy(HASH_MAP map, bool freeKeys, bool freeValues);
+UTILS_EXPORT int hashMap_size(HASH_MAP map);
+UTILS_EXPORT bool hashMap_isEmpty(HASH_MAP map);
+UTILS_EXPORT void * hashMap_get(HASH_MAP map, void * key);
+UTILS_EXPORT bool hashMap_containsKey(HASH_MAP map, void * key);
+UTILS_EXPORT HASH_MAP_ENTRY hashMap_getEntry(HASH_MAP map, void * key);
+UTILS_EXPORT void * hashMap_put(HASH_MAP map, void * key, void * value);
+UTILS_EXPORT void * hashMap_remove(HASH_MAP map, void * key);
+UTILS_EXPORT void hashMap_clear(HASH_MAP map, bool freeKey, bool freeValue);
+UTILS_EXPORT bool hashMap_containsValue(HASH_MAP map, void * value);
+
+UTILS_EXPORT HASH_MAP_ITERATOR hashMapIterator_create(HASH_MAP map);
+UTILS_EXPORT void hashMapIterator_destroy(HASH_MAP_ITERATOR iterator);
+UTILS_EXPORT bool hashMapIterator_hasNext(HASH_MAP_ITERATOR iterator);
+UTILS_EXPORT void hashMapIterator_remove(HASH_MAP_ITERATOR iterator);
+UTILS_EXPORT void * hashMapIterator_nextValue(HASH_MAP_ITERATOR iterator);
+UTILS_EXPORT void * hashMapIterator_nextKey(HASH_MAP_ITERATOR iterator);
+UTILS_EXPORT HASH_MAP_ENTRY hashMapIterator_nextEntry(HASH_MAP_ITERATOR iterator);
+
+UTILS_EXPORT HASH_MAP_KEY_SET hashMapKeySet_create(HASH_MAP map);
+UTILS_EXPORT int hashMapKeySet_size(HASH_MAP_KEY_SET keySet);
+UTILS_EXPORT bool hashMapKeySet_contains(HASH_MAP_KEY_SET keySet, void * key);
+UTILS_EXPORT bool hashMapKeySet_remove(HASH_MAP_KEY_SET keySet, void * key);
+UTILS_EXPORT void hashMapKeySet_clear(HASH_MAP_KEY_SET keySet);
+UTILS_EXPORT bool hashMapKeySet_isEmpty(HASH_MAP_KEY_SET keySet);
+
+UTILS_EXPORT HASH_MAP_VALUES hashMapValues_create(HASH_MAP map);
+UTILS_EXPORT void hashMapValues_destroy(HASH_MAP_VALUES values);
+UTILS_EXPORT HASH_MAP_ITERATOR hashMapValues_iterator(HASH_MAP_VALUES values);
+UTILS_EXPORT int hashMapValues_size(HASH_MAP_VALUES values);
+UTILS_EXPORT bool hashMapValues_contains(HASH_MAP_VALUES values, void * o);
+UTILS_EXPORT void hashMapValues_toArray(HASH_MAP_VALUES values, void* *array[], unsigned
int *size);
+UTILS_EXPORT bool hashMapValues_remove(HASH_MAP_VALUES values, void * o);
+UTILS_EXPORT void hashMapValues_clear(HASH_MAP_VALUES values);
+UTILS_EXPORT bool hashMapValues_isEmpty(HASH_MAP_VALUES values);
+
+UTILS_EXPORT HASH_MAP_ENTRY_SET hashMapEntrySet_create(HASH_MAP map);
+UTILS_EXPORT int hashMapEntrySet_size(HASH_MAP_ENTRY_SET entrySet);
+UTILS_EXPORT bool hashMapEntrySet_contains(HASH_MAP_ENTRY_SET entrySet, HASH_MAP_ENTRY entry);
+UTILS_EXPORT bool hashMapEntrySet_remove(HASH_MAP_VALUES entrySet, HASH_MAP_ENTRY entry);
+UTILS_EXPORT void hashMapEntrySet_clear(HASH_MAP_ENTRY_SET entrySet);
+UTILS_EXPORT bool hashMapEntrySet_isEmpty(HASH_MAP_ENTRY_SET entrySet);
 
-void * hashMapEntry_getKey(HASH_MAP_ENTRY entry);
-void * hashMapEntry_getValue(HASH_MAP_ENTRY entry);
+UTILS_EXPORT void * hashMapEntry_getKey(HASH_MAP_ENTRY entry);
+UTILS_EXPORT void * hashMapEntry_getValue(HASH_MAP_ENTRY entry);
 
 #endif /* HASH_MAP_H_ */

Modified: incubator/celix/trunk/utils/public/include/linked_list_iterator.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/utils/public/include/linked_list_iterator.h?rev=1136654&r1=1136653&r2=1136654&view=diff
==============================================================================
--- incubator/celix/trunk/utils/public/include/linked_list_iterator.h (original)
+++ incubator/celix/trunk/utils/public/include/linked_list_iterator.h Thu Jun 16 20:30:23
2011
@@ -29,20 +29,21 @@
 #include "celixbool.h"
 
 #include "linkedlist.h"
+#include "exports.h"
 
 typedef struct linkedListIterator * LINKED_LIST_ITERATOR;
 
-LINKED_LIST_ITERATOR linkedListIterator_create(LINKED_LIST list, int index);
-void linkedListIterator_destroy(LINKED_LIST_ITERATOR iterator);
-bool linkedListIterator_hasNext(LINKED_LIST_ITERATOR iterator);
-void * linkedListIterator_next(LINKED_LIST_ITERATOR iterator);
-bool linkedListIterator_hasPrevious(LINKED_LIST_ITERATOR iterator);
-void * linkedListIterator_previous(LINKED_LIST_ITERATOR iterator);
-int linkedListIterator_nextIndex(LINKED_LIST_ITERATOR iterator);
-int linkedListIterator_previousIndex(LINKED_LIST_ITERATOR iterator);
-void linkedListIterator_remove(LINKED_LIST_ITERATOR iterator);
-void linkedListIterator_set(LINKED_LIST_ITERATOR iterator, void * element);
-void linkedListIterator_add(LINKED_LIST_ITERATOR iterator, void * element);
+UTILS_EXPORT LINKED_LIST_ITERATOR linkedListIterator_create(LINKED_LIST list, int index);
+UTILS_EXPORT void linkedListIterator_destroy(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT bool linkedListIterator_hasNext(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT void * linkedListIterator_next(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT bool linkedListIterator_hasPrevious(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT void * linkedListIterator_previous(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT int linkedListIterator_nextIndex(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT int linkedListIterator_previousIndex(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT void linkedListIterator_remove(LINKED_LIST_ITERATOR iterator);
+UTILS_EXPORT void linkedListIterator_set(LINKED_LIST_ITERATOR iterator, void * element);
+UTILS_EXPORT void linkedListIterator_add(LINKED_LIST_ITERATOR iterator, void * element);
 
 
 #endif /* LINKED_LIST_ITERATOR_H_ */

Modified: incubator/celix/trunk/utils/public/include/linkedlist.h
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/utils/public/include/linkedlist.h?rev=1136654&r1=1136653&r2=1136654&view=diff
==============================================================================
--- incubator/celix/trunk/utils/public/include/linkedlist.h (original)
+++ incubator/celix/trunk/utils/public/include/linkedlist.h Thu Jun 16 20:30:23 2011
@@ -27,31 +27,32 @@
 #define LINKEDLIST_H_
 
 #include "celixbool.h"
+#include "exports.h"
 
 typedef struct linkedListEntry * LINKED_LIST_ENTRY;
 typedef struct linkedList * LINKED_LIST;
 
-LINKED_LIST linkedList_create(void);
-void * linkedList_getFirst(LINKED_LIST list);
-void * linkedList_getLast(LINKED_LIST list);
-void * linkedList_removeFirst(LINKED_LIST list);
-void * linkedList_removeLast(LINKED_LIST list);
-void linkedList_addFirst(LINKED_LIST list, void * element);
-void linkedList_addLast(LINKED_LIST list, void * element);
-bool linkedList_contains(LINKED_LIST list, void * element);
-int linkedList_size(LINKED_LIST list);
-bool linkedList_isEmpty(LINKED_LIST list);
-bool linkedList_addElement(LINKED_LIST list, void * element);
-bool linkedList_removeElement(LINKED_LIST list, void * element);
-void linkedList_clear(LINKED_LIST list);
-void * linkedList_get(LINKED_LIST list, int index);
-void * linkedList_set(LINKED_LIST list, int index, void * element);
-void linkedList_addIndex(LINKED_LIST list, int index, void * element);
-void * linkedList_removeIndex(LINKED_LIST list, int index);
-LINKED_LIST_ENTRY linkedList_entry(LINKED_LIST list, int index);
-int linkedList_indexOf(LINKED_LIST list, void * element);
-LINKED_LIST_ENTRY linkedList_addBefore(LINKED_LIST list, void * element, LINKED_LIST_ENTRY
entry);
-void * linkedList_removeEntry(LINKED_LIST list, LINKED_LIST_ENTRY entry);
+UTILS_EXPORT LINKED_LIST linkedList_create(void);
+UTILS_EXPORT void * linkedList_getFirst(LINKED_LIST list);
+UTILS_EXPORT void * linkedList_getLast(LINKED_LIST list);
+UTILS_EXPORT void * linkedList_removeFirst(LINKED_LIST list);
+UTILS_EXPORT void * linkedList_removeLast(LINKED_LIST list);
+UTILS_EXPORT void linkedList_addFirst(LINKED_LIST list, void * element);
+UTILS_EXPORT void linkedList_addLast(LINKED_LIST list, void * element);
+UTILS_EXPORT bool linkedList_contains(LINKED_LIST list, void * element);
+UTILS_EXPORT int linkedList_size(LINKED_LIST list);
+UTILS_EXPORT bool linkedList_isEmpty(LINKED_LIST list);
+UTILS_EXPORT bool linkedList_addElement(LINKED_LIST list, void * element);
+UTILS_EXPORT bool linkedList_removeElement(LINKED_LIST list, void * element);
+UTILS_EXPORT void linkedList_clear(LINKED_LIST list);
+UTILS_EXPORT void * linkedList_get(LINKED_LIST list, int index);
+UTILS_EXPORT void * linkedList_set(LINKED_LIST list, int index, void * element);
+UTILS_EXPORT void linkedList_addIndex(LINKED_LIST list, int index, void * element);
+UTILS_EXPORT void * linkedList_removeIndex(LINKED_LIST list, int index);
+UTILS_EXPORT LINKED_LIST_ENTRY linkedList_entry(LINKED_LIST list, int index);
+UTILS_EXPORT int linkedList_indexOf(LINKED_LIST list, void * element);
+UTILS_EXPORT LINKED_LIST_ENTRY linkedList_addBefore(LINKED_LIST list, void * element, LINKED_LIST_ENTRY
entry);
+UTILS_EXPORT void * linkedList_removeEntry(LINKED_LIST list, LINKED_LIST_ENTRY entry);
 
 
 #endif /* LINKEDLIST_H_ */



Mime
View raw message