views.h 900 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #ifndef _VIEWS_H_
  13. #define _VIEWS_H_
  14. /* mechanics */
  15. typedef int (*api_views_entry_exists)(char *view_dn, Slapi_Entry *e);
  16. typedef int (*api_views_entry_dn_exists)(char *view_dn, char *e_dn);
  17. /* API ID for slapi_apib_get_interface */
  18. #define Views_v1_0_GUID "000e5b1e-9958-41da-a573-db8064a3894e"
  19. /* API */
  20. /* the api broker reserves api[0] for its use */
  21. #define views_entry_exists(api, dn, entry) \
  22. ((api_views_entry_exists*)(api))[1]( dn, entry )
  23. #define views_entry_dn_exists(api, dn, entry_dn) \
  24. ((api_views_entry_dn_exists*)(api))[2]( dn, entry_dn )
  25. #endif /*_VIEWS_H_*/