rpc_lookup.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2009 iptelorg GmbH
  5. *
  6. * Permission to use, copy, modify, and distribute this software for any
  7. * purpose with or without fee is hereby granted, provided that the above
  8. * copyright notice and this permission notice appear in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*
  19. * SER RPC lookup and register functions
  20. */
  21. /*
  22. * History:
  23. * --------
  24. * 2009-05-11 initial version (andrei)
  25. */
  26. #ifndef __rpc_lookup_h
  27. #define __rpc_lookup_h
  28. #include "rpc.h"
  29. /* must be exported for listing the rpcs */
  30. extern rpc_export_t** rpc_sarray;
  31. extern int rpc_sarray_crt_size;
  32. int init_rpcs(void);
  33. void destroy_rpcs(void);
  34. rpc_export_t* rpc_lookup(const char* name, int len);
  35. int rpc_register(rpc_export_t* rpc);
  36. int rpc_register_array(rpc_export_t* rpc_array);
  37. #endif /*__rpc_lookup_h*/
  38. /* vi: set ts=4 sw=4 tw=79:ai:cindent: */