helpers.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. *
  3. Copyright (c) Eicon Networks, 2002.
  4. *
  5. This source file is supplied for the use with
  6. Eicon Networks range of DIVA Server Adapters.
  7. *
  8. Eicon File Revision : 2.1
  9. *
  10. This program is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2, or (at your option)
  13. any later version.
  14. *
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY
  17. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. See the GNU General Public License for more details.
  19. *
  20. You should have received a copy of the GNU General Public License
  21. along with this program; if not, write to the Free Software
  22. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. *
  24. */
  25. #ifndef __DIVA_XDI_CARD_CONFIG_HELPERS_INC__
  26. #define __DIVA_XDI_CARD_CONFIG_HELPERS_INC__
  27. dword diva_get_protocol_file_features(byte *File,
  28. int offset,
  29. char *IdStringBuffer,
  30. dword IdBufferSize);
  31. void diva_configure_protocol(PISDN_ADAPTER IoAdapter);
  32. /*
  33. Low level file access system abstraction
  34. */
  35. /* -------------------------------------------------------------------------
  36. Access to single file
  37. Return pointer to the image of the requested file,
  38. write image length to 'FileLength'
  39. ------------------------------------------------------------------------- */
  40. void *xdiLoadFile(char *FileName, dword *FileLength, unsigned long MaxLoadSize);
  41. /* -------------------------------------------------------------------------
  42. Dependent on the protocol settings does read return pointer
  43. to the image of appropriate protocol file
  44. ------------------------------------------------------------------------- */
  45. void *xdiLoadArchive(PISDN_ADAPTER IoAdapter, dword *FileLength, unsigned long MaxLoadSize);
  46. /* --------------------------------------------------------------------------
  47. Free all system resources accessed by xdiLoadFile and xdiLoadArchive
  48. -------------------------------------------------------------------------- */
  49. void xdiFreeFile(void *handle);
  50. #endif