default_rb.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright Institute of Communication and Computer Systems (ICCS)
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. *
  16. */
  17. /**
  18. * @file default_rb.h
  19. * @author Ioannis Koutras (joko@microlab.ntua.gr)
  20. * @date October 2012
  21. *
  22. * @brief Include libraries and defines for default raw block selection.
  23. */
  24. #ifndef DEFAULT_RB_H
  25. #define DEFAULT_RB_H
  26. #include <dmmlib/config.h>
  27. #ifdef BITMAP_RB_ONLY
  28. #include "bitmap/bitmap.h"
  29. #include "bitmap/bitmap_rb.h"
  30. /** Default raw block data type */
  31. #define DEFAULT_RB_T bitmap_rb_t
  32. /** Default raw block enumeration type */
  33. #define DEFAULT_RB_TYPE BITMAP
  34. #endif /* BITMAP_RB_ONLY */
  35. #ifdef FL_RB_ONLY
  36. #include "dmmlib/freelist/freelist.h"
  37. #include "dmmlib/freelist/freelist_rb.h"
  38. /** Default raw block data type */
  39. #define DEFAULT_RB_T freelist_rb_t
  40. /** Default raw block enumeration type */
  41. #define DEFAULT_RB_TYPE FREELIST
  42. #endif /* FL_RB_ONLY */
  43. #endif /* DEFAULT_RB_H */