Glib
view release on metacpan or search on metacpan
}
OUTPUT:
RETVAL
#if GLIB_CHECK_VERSION (2, 6, 0)
=for apidoc Glib::get_user_config_dir __function__
Gets the base directory in which to store user-specific application
configuration information such as user preferences and settings.
=cut
=for apidoc Glib::get_user_cache_dir __function__
Gets the base directory in which to store non-essential, cached data specific
to particular user.
=cut
=for apidoc __function__
Get the base directory for application data such as icons that is customized
for a particular user.
=cut
const gchar *
g_get_user_data_dir ()
ALIAS:
Glib::get_user_config_dir = 1
Glib::get_user_cache_dir = 2
CODE:
switch (ix) {
case 0: RETVAL = g_get_user_data_dir (); break;
case 1: RETVAL = g_get_user_config_dir (); break;
case 2: RETVAL = g_get_user_cache_dir (); break;
default:
RETVAL = NULL;
g_assert_not_reached ();
}
OUTPUT:
RETVAL
=for apidoc Glib::get_system_config_dirs __function__
Returns an ordered list of base directories in which to access system-wide
configuration information.
=cut
=for apidoc Glib::get_language_names __function__
Computes a list of applicable locale names, which can be used to e.g. construct
locale-dependent filenames or search paths. The returned list is sorted from
most desirable to least desirable and always contains the default locale "C".
=cut
=for apidoc __function__
Returns an ordered list of base directories in which to access system-wide
application data.
=cut
void
g_get_system_data_dirs ()
ALIAS:
Glib::get_system_config_dirs = 1
Glib::get_language_names = 2
PREINIT:
const gchar * const * strings;
int i;
PPCODE:
switch (ix) {
case 0: strings = g_get_system_data_dirs (); break;
case 1: strings = g_get_system_config_dirs (); break;
case 2: strings = g_get_language_names (); break;
default:
strings = NULL;
g_assert_not_reached ();
}
for (i = 0; strings[i]; i++)
XPUSHs (sv_2mortal (newSVGChar (strings[i])));
#endif
#if GLIB_CHECK_VERSION (2, 14, 0)
=for apidoc __function__
Returns the full path of a special directory using its logical id.
=cut
const gchar* g_get_user_special_dir (GUserDirectory directory);
#endif
=for apidoc __function__
=cut
const gchar* g_get_prgname ();
=for apidoc __function__
=cut
void g_set_prgname (const gchar *prgname);
#if GLIB_CHECK_VERSION(2, 2, 0)
=for apidoc __function__
Get the human-readable application name set by C<set_application_name>.
=cut
const gchar * g_get_application_name ();
=for apidoc __function__
Set the human-readable application name.
=cut
void g_set_application_name (const gchar *application_name);
#endif
###
### This stuff is functionality provided by File::Spec and friends.
### Thus we will not bind it.
###
#gboolean g_path_is_absolute (const gchar *file_name);
#G_CONST_RETURN gchar* g_path_skip_root (const gchar *file_name);
#gchar* g_get_current_dir (void);
#gchar* g_path_get_basename (const gchar *file_name);
#gchar* g_path_get_dirname (const gchar *file_name);
#
#
## Look for an executable in PATH, following execvp() rules
#gchar* g_find_program_in_path (const gchar *program);
=for apidoc __function__
=for apidoc Glib::MINOR_VERSION __function__
Provides access to the version information that Glib was compiled against.
Essentially equivalent to the #define's GLIB_MINOR_VERSION.
=cut
=for apidoc Glib::MICRO_VERSION __function__
Provides access to the version information that Glib was compiled against.
Essentially equivalent to the #define's GLIB_MICRO_VERSION.
=cut
=for apidoc Glib::major_version __function__
Provides access to the version information that Glib is linked against.
Essentially equivalent to the global variable glib_major_version.
=cut
=for apidoc Glib::minor_version __function__
Provides access to the version information that Glib is linked against.
Essentially equivalent to the global variable glib_minor_version.
=cut
=for apidoc Glib::micro_version __function__
Provides access to the version information that Glib is linked against.
Essentially equivalent to the global variable glib_micro_version.
=cut
=for apidoc __function__
Provides access to the version information that Glib was compiled against.
Essentially equivalent to the #define's GLIB_MAJOR_VERSION.
=cut
guint
MAJOR_VERSION ()
ALIAS:
Glib::MINOR_VERSION = 1
Glib::MICRO_VERSION = 2
Glib::major_version = 3
Glib::minor_version = 4
Glib::micro_version = 5
CODE:
switch (ix)
{
case 0: RETVAL = GLIB_MAJOR_VERSION; break;
case 1: RETVAL = GLIB_MINOR_VERSION; break;
case 2: RETVAL = GLIB_MICRO_VERSION; break;
case 3: RETVAL = glib_major_version; break;
case 4: RETVAL = glib_minor_version; break;
case 5: RETVAL = glib_micro_version; break;
default:
RETVAL = -1;
g_assert_not_reached ();
}
OUTPUT:
RETVAL
=for apidoc
=for signature (MAJOR, MINOR, MICRO) = Glib->GET_VERSION_INFO
Shorthand to fetch as a list the glib version for which Glib was compiled.
See C<Glib::MAJOR_VERSION>, etc.
=cut
void
GET_VERSION_INFO (class)
PPCODE:
EXTEND (SP, 3);
PUSHs (sv_2mortal (newSViv (GLIB_MAJOR_VERSION)));
PUSHs (sv_2mortal (newSViv (GLIB_MINOR_VERSION)));
PUSHs (sv_2mortal (newSViv (GLIB_MICRO_VERSION)));
PERL_UNUSED_VAR (ax);
=for apidoc
Provides a mechanism for checking the version information that Glib was
compiled against. Essentially equvilent to the macro GLIB_CHECK_VERSION.
=cut
gboolean
CHECK_VERSION (class, guint required_major, guint required_minor, guint required_micro)
CODE:
RETVAL = GLIB_CHECK_VERSION (required_major, required_minor,
required_micro);
OUTPUT:
RETVAL
MODULE = Glib::Utils PACKAGE = Glib::Markup PREFIX = g_markup_
=for object Glib::Markup markup handling functions
=cut
=for apidoc __function__
=cut
# gchar* g_markup_escape_text (const gchar *text, gssize length);
gchar_own *
g_markup_escape_text (text)
const gchar* text
CODE:
RETVAL = g_markup_escape_text (text, strlen (text));
OUTPUT:
RETVAL
( run in 0.536 second using v1.01-cache-2.11-cpan-5511b514fd6 )