ged_hashtable.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2015 MediaTek Inc.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __GED_HASH_TABLE_H__
  14. #define __GED_HASH_TABLE_H__
  15. typedef void* GED_HASHTABLE_HANDLE;
  16. GED_HASHTABLE_HANDLE ged_hashtable_create(unsigned int ui32Bits);
  17. void ged_hashtable_destroy(GED_HASHTABLE_HANDLE hHashTable);
  18. GED_ERROR ged_hashtable_insert(GED_HASHTABLE_HANDLE hHashTable, void* pvoid, unsigned int* pui32ID);
  19. void ged_hashtable_remove(GED_HASHTABLE_HANDLE hHashTable, unsigned int ui32ID);
  20. void* ged_hashtable_find(GED_HASHTABLE_HANDLE hHashTable, unsigned int ui32ID);
  21. GED_ERROR ged_hashtable_set(GED_HASHTABLE_HANDLE hHashTable, unsigned int ui32ID, void* pvoid);
  22. #endif