home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / perl5 / Gnome2 / VFS / Install / vfs2perl.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-08  |  4.5 KB  |  130 lines

  1. /*
  2.  * Copyright (C) 2003 by the gtk2-perl team
  3.  * 
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2.1 of the License, or (at your option) any later version.
  8.  * 
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  * 
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17.  *
  18.  * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-VFS/vfs2perl.h,v 1.19 2005/03/08 17:07:13 kaffeetisch Exp $
  19.  */
  20.  
  21. #ifndef _VFS2PERL_H_
  22. #define _VFS2PERL_H_
  23.  
  24. #include <gperl.h>
  25. #include "vfs2perl-version.h"
  26.  
  27. #include <libgnomevfs/gnome-vfs.h>
  28. #include <libgnomevfs/gnome-vfs-uri.h>
  29. #include <libgnomevfs/gnome-vfs-handle.h>
  30. #include <libgnomevfs/gnome-vfs-mime-handlers.h>
  31. #include <libgnomevfs/gnome-vfs-mime-monitor.h>
  32. #include <libgnomevfs/gnome-vfs-application-registry.h>
  33.  
  34. #if VFS_CHECK_VERSION (2, 8, 0)
  35.  
  36. #include <libgnomevfs/gnome-vfs-dns-sd.h>
  37. #include <libgnomevfs/gnome-vfs-address.h>
  38. #include <libgnomevfs/gnome-vfs-resolve.h>
  39.  
  40. #endif /* 2.8 */
  41.  
  42. /* ------------------------------------------------------------------------- */
  43.  
  44. #define GNOME_VFS_TYPE_VFS_URI (vfs2perl_gnome_vfs_uri_get_type ())
  45. GType vfs2perl_gnome_vfs_uri_get_type (void) G_GNUC_CONST;
  46.  
  47. /* ------------------------------------------------------------------------- */
  48.  
  49. #include "vfs2perl-gtypes.h"
  50.  
  51. /* i'm just guessing here.  if you get a message about failed assertions
  52.  * that something is a GFlags type in GnomeVFSDirectory.t, then you probably
  53.  * need to set this to include your version.
  54.  */
  55. #if !VFS_CHECK_VERSION (2, 1, 0)
  56. # define VFS2PERL_BROKEN_FILE_PERMISSIONS
  57. # undef GNOME_VFS_TYPE_VFS_FILE_PERMISSIONS
  58. # define GNOME_VFS_TYPE_VFS_FILE_PERMISSIONS (_vfs2perl_gnome_vfs_file_permissions_get_type ())
  59.   GType _vfs2perl_gnome_vfs_file_permissions_get_type (void) G_GNUC_CONST;
  60. #endif
  61.  
  62. #include "vfs2perl-autogen.h"
  63.  
  64. /* ------------------------------------------------------------------------- */
  65.  
  66. SV * newSVGnomeVFSFileSize (GnomeVFSFileSize size);
  67. GnomeVFSFileSize SvGnomeVFSFileSize (SV *size);
  68.  
  69. SV * newSVGnomeVFSFileOffset (GnomeVFSFileOffset offset);
  70. GnomeVFSFileOffset SvGnomeVFSFileOffset (SV *offset);
  71.  
  72. SV * newSVGnomeVFSHandle (GnomeVFSHandle *handle);
  73. GnomeVFSHandle * SvGnomeVFSHandle (SV *handle);
  74.  
  75. SV * newSVGnomeVFSMonitorHandle (GnomeVFSMonitorHandle *handle);
  76. GnomeVFSMonitorHandle * SvGnomeVFSMonitorHandle (SV *handle);
  77.  
  78. SV * newSVGnomeVFSDirectoryHandle (GnomeVFSDirectoryHandle *handle);
  79. GnomeVFSDirectoryHandle * SvGnomeVFSDirectoryHandle (SV *handle);
  80.  
  81. SV * newSVGnomeVFSAsyncHandle (GnomeVFSAsyncHandle *handle);
  82. GnomeVFSAsyncHandle * SvGnomeVFSAsyncHandle (SV *handle);
  83.  
  84. #if VFS_CHECK_VERSION (2, 8, 0)
  85.  
  86. SV * newSVGnomeVFSDNSSDBrowseHandle (GnomeVFSDNSSDBrowseHandle *handle);
  87. GnomeVFSDNSSDBrowseHandle * SvGnomeVFSDNSSDBrowseHandle (SV *handle);
  88.  
  89. SV * newSVGnomeVFSDNSSDResolveHandle (GnomeVFSDNSSDResolveHandle *handle);
  90. GnomeVFSDNSSDResolveHandle * SvGnomeVFSDNSSDResolveHandle (SV *handle);
  91.  
  92. SV * newSVGnomeVFSResolveHandle (GnomeVFSResolveHandle *handle);
  93. GnomeVFSResolveHandle * SvGnomeVFSResolveHandle (SV *handle);
  94.  
  95. #endif /* 2.8 */
  96.  
  97. typedef const char GnomeVFSApplication;
  98. const char * SvGnomeVFSApplication (SV *object);
  99. SV * newSVGnomeVFSApplication (const char *app_id);
  100.  
  101. typedef const char GnomeVFSMimeType;
  102. const char * SvGnomeVFSMimeType (SV *object);
  103. SV * newSVGnomeVFSMimeType (const char *mime_type);
  104.  
  105. SV * newSVGnomeVFSMimeApplication (GnomeVFSMimeApplication *application);
  106. GnomeVFSMimeApplication * SvGnomeVFSMimeApplication (SV *object);
  107.  
  108. GnomeVFSFileInfo * SvGnomeVFSFileInfo (SV *object);
  109. SV * newSVGnomeVFSFileInfo (GnomeVFSFileInfo *info);
  110.  
  111. SV * newSVGnomeVFSXferProgressInfo (GnomeVFSXferProgressInfo *info);
  112.  
  113. /* ------------------------------------------------------------------------- */
  114.  
  115. GList * SvPVGList (SV *ref);
  116.  
  117. GList * SvGnomeVFSURIGList (SV *ref);
  118.  
  119. char ** SvEnvArray (SV *ref);
  120.  
  121. SV * newSVGnomeVFSFileInfoGList (GList *list);
  122.  
  123. SV * newSVGnomeVFSGetFileInfoResultGList (GList *list);
  124.  
  125. SV * newSVGnomeVFSFindDirectoryResultGList (GList *list);
  126.  
  127. /* ------------------------------------------------------------------------- */
  128.  
  129. #endif /* _VFS2PERL_H_ */
  130.