Subversion Repositories Kolibri OS

Rev

Rev 7252 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. //Network library
  2. #ifndef INCLUDE_NETCODE_H
  3. #define INCLUDE_NETCODE_H
  4.  
  5. #ifndef INCLUDE_KOLIBRI_H
  6. #include "../lib/kolibri.h"
  7. #endif
  8.  
  9. #ifndef INCLUDE_DLL_H
  10. #include "../lib/dll.h"
  11. #endif
  12. dword netcode_lib = #a_netcode_lib;
  13. char a_netcode_lib[]="/sys/lib/base64.obj";
  14.  
  15. dword base64_encode     = #aBase64_encode;
  16. dword base64_decode     = #aBase64_decode;
  17. $DD 2 dup 0
  18.  
  19. char aBase64_encode[] = "base64_encode";
  20. char aBase64_decode[] = "base64_decode";
  21.  
  22. /*int base64_encode(char inp[], char outp[], int len);
  23. Кодирование массива inp длиной len в массив outp (строку с '\0'). Функция возвращает длину outp.
  24.  
  25. int base64_decode(char inp[], char outp[], int len);
  26. Декодирование массива inp длиной len в массив outp (строку с '\0'). Функция возвращает длину outp.*/
  27.  
  28. #endif