gfileutils.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // included by glib2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. PGFileError = ^TGFileError;
  7. TGFileError = gint;
  8. PGFileTest = ^TGFileTest;
  9. TGFileTest = integer;
  10. {$ENDIF read_interface_types}
  11. //------------------------------------------------------------------------------
  12. {$IFDEF read_interface_rest}
  13. const
  14. G_FILE_TEST_IS_REGULAR = 1 shl 0;
  15. G_FILE_TEST_IS_SYMLINK = 1 shl 1;
  16. G_FILE_TEST_IS_DIR = 1 shl 2;
  17. G_FILE_TEST_IS_EXECUTABLE = 1 shl 3;
  18. G_FILE_TEST_EXISTS = 1 shl 4;
  19. const
  20. G_FILE_ERROR_EXIST = 0;
  21. G_FILE_ERROR_ISDIR = 1;
  22. G_FILE_ERROR_ACCES = 2;
  23. G_FILE_ERROR_NAMETOOLONG = 3;
  24. G_FILE_ERROR_NOENT = 4;
  25. G_FILE_ERROR_NOTDIR = 5;
  26. G_FILE_ERROR_NXIO = 6;
  27. G_FILE_ERROR_NODEV = 7;
  28. G_FILE_ERROR_ROFS = 8;
  29. G_FILE_ERROR_TXTBSY = 9;
  30. G_FILE_ERROR_FAULT = 10;
  31. G_FILE_ERROR_LOOP = 11;
  32. G_FILE_ERROR_NOSPC = 12;
  33. G_FILE_ERROR_NOMEM = 13;
  34. G_FILE_ERROR_MFILE = 14;
  35. G_FILE_ERROR_NFILE = 15;
  36. G_FILE_ERROR_BADF = 16;
  37. G_FILE_ERROR_INVAL = 17;
  38. G_FILE_ERROR_PIPE = 18;
  39. G_FILE_ERROR_AGAIN = 19;
  40. G_FILE_ERROR_INTR = 20;
  41. G_FILE_ERROR_IO = 21;
  42. G_FILE_ERROR_PERM = 22;
  43. G_FILE_ERROR_FAILED = 23;
  44. function G_FILE_ERROR: TGQuark;
  45. function g_file_error_quark:TGQuark;cdecl;external gliblib name 'g_file_error_quark';
  46. function g_file_error_from_errno(err_no:gint):TGFileError;cdecl;external gliblib name 'g_file_error_from_errno';
  47. function g_file_test(filename:Pgchar; test:TGFileTest):gboolean;cdecl;external gliblib name 'g_file_test';
  48. function g_file_get_contents(filename:Pgchar; contents:PPgchar; length:Pgsize; error:PPGError):gboolean;cdecl;external gliblib name 'g_file_get_contents';
  49. function g_mkstemp(tmpl:Pchar):longint;cdecl;external gliblib name 'g_mkstemp';
  50. function g_file_open_tmp(tmpl:Pchar; name_used:PPchar; error:PPGError):longint;cdecl;external gliblib name 'g_file_open_tmp';
  51. {$IFNDEF KYLIX}
  52. function g_build_path(separator:Pgchar; first_element:Pgchar; args:array of const):Pgchar;cdecl;overload;external gliblib name 'g_build_path';
  53. function g_build_path(separator:Pgchar; first_element:Pgchar):Pgchar;cdecl;overload;varargs;external gliblib name 'g_build_path';
  54. function g_build_filename(first_element:Pgchar; args:array of const):Pgchar;cdecl;overload;external gliblib name 'g_build_filename';
  55. function g_build_filename(first_element:Pgchar):Pgchar;cdecl;overload;varargs;external gliblib name 'g_build_filename';
  56. {$ELSE}
  57. function g_build_path(separator:Pgchar; first_element:Pgchar):Pgchar;varargs;cdecl;external gliblib name 'g_build_path';
  58. function g_build_filename(first_element:Pgchar):Pgchar;varargs;cdecl;external gliblib name 'g_build_filename';
  59. {$ENDIF}
  60. {$ENDIF read_interface_rest}
  61. // included by glib2.pas