protocols.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* GNU Objective C Runtime protocols - Private functions
  2. Copyright (C) 2010-2022 Free Software Foundation, Inc.
  3. Contributed by Nicola Pero <nicola.pero@meta-innovation.com>
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under the
  6. terms of the GNU General Public License as published by the Free Software
  7. Foundation; either version 3, or (at your option) any later version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  10. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  11. details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. #ifndef __objc_private_protocols_INCLUDE_GNU
  20. #define __objc_private_protocols_INCLUDE_GNU
  21. /* This function needs to be called at startup by init.c. */
  22. void
  23. __objc_protocols_init (void);
  24. /* This function adds a protocol to the internal hashtable of
  25. protocols by name, which allows objc_getProtocol(name) to be
  26. implemented efficiently. */
  27. void
  28. __objc_protocols_add_protocol (const char *name, struct objc_protocol *object);
  29. #endif /* not __objc_private_protocols_INCLUDE_GNU */