Gnome2-VFS
view release on metacpan or search on metacpan
xs/GnomeVFSUtils.xs view on Meta::CPAN
## char *gnome_vfs_make_path_name_canonical (const char *path)
char_own *
gnome_vfs_make_path_name_canonical (class, path)
const char *path
C_ARGS:
path
## char *gnome_vfs_expand_initial_tilde (const char *path)
char_own *
gnome_vfs_expand_initial_tilde (class, path)
const char *path
C_ARGS:
path
## char *gnome_vfs_unescape_string_for_display (const char *escaped)
gchar_own *
gnome_vfs_unescape_string_for_display (class, escaped)
const char *escaped
C_ARGS:
escaped
## char *gnome_vfs_get_local_path_from_uri (const char *uri)
char_own *
gnome_vfs_get_local_path_from_uri (class, uri)
const char *uri
C_ARGS:
uri
## char *gnome_vfs_get_uri_from_local_path (const char *local_full_path)
char_own *
gnome_vfs_get_uri_from_local_path (class, local_full_path)
const char *local_full_path
C_ARGS:
local_full_path
## gboolean gnome_vfs_is_executable_command_string (const char *command_string)
gboolean
gnome_vfs_is_executable_command_string (class, command_string)
const char *command_string
C_ARGS:
command_string
### void gnome_vfs_list_deep_free (GList *list)
#void
#gnome_vfs_list_deep_free (list)
# GList *list
=for apidoc
Returns a GnomeVFSResult and a GnomeVFSFileSize.
=cut
## GnomeVFSResult gnome_vfs_get_volume_free_space (const GnomeVFSURI *vfs_uri, GnomeVFSFileSize *size)
void
gnome_vfs_get_volume_free_space (class, vfs_uri)
const GnomeVFSURI *vfs_uri
PREINIT:
GnomeVFSResult result;
GnomeVFSFileSize size;
PPCODE:
result = gnome_vfs_get_volume_free_space (vfs_uri, &size);
EXTEND (sp, 2);
PUSHs (sv_2mortal (newSVGnomeVFSResult (result)));
PUSHs (sv_2mortal (newSVGnomeVFSFileSize (size)));
## char *gnome_vfs_icon_path_from_filename (const char *filename)
char_own *
gnome_vfs_icon_path_from_filename (class, filename)
const char *filename
C_ARGS:
filename
### GnomeVFSResult gnome_vfs_open_fd (GnomeVFSHandle **handle, int filedes)
#GnomeVFSResult
#gnome_vfs_open_fd (handle, filedes)
# GnomeVFSHandle **handle
# int filedes
## gboolean gnome_vfs_is_primary_thread (void)
gboolean
gnome_vfs_is_primary_thread (class)
C_ARGS:
/* void */
#if VFS_CHECK_VERSION (2, 2, 0)
=for apidoc
Returns a GnomeVFSResult, the file size and the file content.
=cut
## GnomeVFSResult gnome_vfs_read_entire_file (const char *uri, int *file_size, char **file_contents)
void
gnome_vfs_read_entire_file (class, uri)
const char *uri
PREINIT:
GnomeVFSResult result;
int file_size = 0;
char *file_contents = NULL;
PPCODE:
result = gnome_vfs_read_entire_file (uri, &file_size, &file_contents);
EXTEND (sp, 3);
PUSHs (sv_2mortal (newSVGnomeVFSResult (result)));
PUSHs (sv_2mortal (newSViv (file_size)));
PUSHs (sv_2mortal (file_size
? newSVpv (file_contents, file_size)
: newSVsv (&PL_sv_undef)));
## char * gnome_vfs_format_uri_for_display (const char *uri)
gchar_own *
gnome_vfs_format_uri_for_display (class, uri)
const char *uri
C_ARGS:
uri
## char * gnome_vfs_make_uri_from_input (const char *uri)
char_own *
gnome_vfs_make_uri_from_input (class, uri)
const char *uri
C_ARGS:
uri
#endif
#if VFS_CHECK_VERSION (2, 4, 0)
## char * gnome_vfs_make_uri_from_input_with_dirs (const char *uri, GnomeVFSMakeURIDirs dirs)
char_own *
gnome_vfs_make_uri_from_input_with_dirs (class, uri, dirs)
const char *uri
GnomeVFSMakeURIDirs dirs
C_ARGS:
uri, dirs
#endif
#if VFS_CHECK_VERSION (2, 12, 0)
## char * gnome_vfs_make_uri_from_input_with_trailing_ws (const char *location);
char_own *
gnome_vfs_make_uri_from_input_with_trailing_ws (class, location)
const char *location
C_ARGS:
location
#endif
#if VFS_CHECK_VERSION (2, 2, 0)
## char * gnome_vfs_make_uri_canonical_strip_fragment (const char *uri)
char_own *
gnome_vfs_make_uri_canonical_strip_fragment (class, uri)
const char *uri
C_ARGS:
uri
## gboolean gnome_vfs_uris_match (const char *uri_1, const char *uri_2)
gboolean
gnome_vfs_uris_match (class, uri_1, uri_2)
const char *uri_1
( run in 0.493 second using v1.01-cache-2.11-cpan-5511b514fd6 )