Last active
May 7, 2017 05:03
-
-
Save josharian/88c23ec7c4c7c45ac87a539ee18ede5d to your computer and use it in GitHub Desktop.
file 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go:cgo_ldflag "-g" | |
//go:cgo_ldflag "-O2" | |
//go:cgo_ldflag "-L/usr/local/Cellar/glib/2.52.0/lib" | |
//go:cgo_ldflag "-L/usr/local/opt/gettext/lib" | |
//go:cgo_ldflag "-lgobject-2.0" | |
//go:cgo_ldflag "-lglib-2.0" | |
//go:cgo_ldflag "-lintl" | |
// Created by cgo - DO NOT EDIT | |
package glib | |
import "unsafe" | |
import _ "runtime/cgo" | |
import "syscall" | |
var _ syscall.Errno | |
func _Cgo_ptr(ptr unsafe.Pointer) unsafe.Pointer { return ptr } | |
//go:linkname _Cgo_always_false runtime.cgoAlwaysFalse | |
var _Cgo_always_false bool | |
//go:linkname _Cgo_use runtime.cgoUse | |
func _Cgo_use(interface{}) | |
type _Ctype_GConnectFlags uint32 | |
type _Ctype_GData _Ctype_struct__GData | |
type _Ctype_GError _Ctype_struct__GError | |
type _Ctype_GList _Ctype_struct__GList | |
type _Ctype_GObject _Ctype_struct__GObject | |
type _Ctype_GQuark _Ctype_guint32 | |
type _Ctype_GSList _Ctype_struct__GSList | |
type _Ctype_GType _Ctype_gsize | |
type _Ctype_GTypeClass _Ctype_struct__GTypeClass | |
type _Ctype_GTypeInstance _Ctype_struct__GTypeInstance | |
type _Ctype_GUserDirectory uint32 | |
type _Ctype_GValue _Ctype_struct__GValue | |
type _Ctype_char int8 | |
type _Ctype_float float32 | |
type _Ctype_gboolean _Ctype_gint | |
type _Ctype_gchar _Ctype_char | |
type _Ctype_gconstpointer unsafe.Pointer | |
type _Ctype_gfloat _Ctype_float | |
type _Ctype_gint _Ctype_int | |
type _Ctype_gpointer unsafe.Pointer | |
type _Ctype_gsize _Ctype_ulong | |
type _Ctype_guint _Ctype_uint | |
type _Ctype_guint32 _Ctype_uint | |
type _Ctype_int int32 | |
type _Ctype_size_t _Ctype_ulong | |
type _Ctype_struct__GData struct{} | |
type _Ctype_struct__GError struct { | |
domain _Ctype_GQuark | |
code _Ctype_gint | |
message *_Ctype_gchar | |
} | |
type _Ctype_struct__GList struct { | |
data _Ctype_gpointer | |
next *_Ctype_struct__GList | |
prev *_Ctype_struct__GList | |
} | |
type _Ctype_struct__GObject struct { | |
g_type_instance _Ctype_struct__GTypeInstance | |
ref_count _Ctype_guint | |
_ [4]byte | |
qdata *_Ctype_struct__GData | |
} | |
type _Ctype_struct__GSList struct { | |
data _Ctype_gpointer | |
next *_Ctype_struct__GSList | |
} | |
type _Ctype_struct__GTypeClass struct { | |
g_type _Ctype_GType | |
} | |
type _Ctype_struct__GTypeInstance struct { | |
g_class *_Ctype_struct__GTypeClass | |
} | |
type _Ctype_struct__GValue struct { | |
g_type _Ctype_GType | |
data [2][8]byte | |
} | |
type _Ctype_uint uint32 | |
type _Ctype_ulong uint64 | |
type _Ctype_union___0 [8]byte | |
type _Ctype_void [0]byte | |
//go:linkname _cgo_runtime_cgocall runtime.cgocall | |
func _cgo_runtime_cgocall(unsafe.Pointer, uintptr) int32 | |
//go:linkname _cgo_runtime_cgocallback runtime.cgocallback | |
func _cgo_runtime_cgocallback(unsafe.Pointer, unsafe.Pointer, uintptr, uintptr) | |
//go:linkname _cgoCheckPointer runtime.cgoCheckPointer | |
func _cgoCheckPointer(interface{}, ...interface{}) | |
//go:linkname _cgoCheckResult runtime.cgoCheckResult | |
func _cgoCheckResult(interface{}) | |
const _Ciconst_G_CONNECT_AFTER = 0x1 | |
const _Ciconst_G_CONNECT_SWAPPED = 0x2 | |
const _Ciconst_G_USER_DIRECTORY_DESKTOP = 0x0 | |
const _Ciconst_G_USER_DIRECTORY_DOCUMENTS = 0x1 | |
const _Ciconst_G_USER_DIRECTORY_DOWNLOAD = 0x2 | |
const _Ciconst_G_USER_DIRECTORY_MUSIC = 0x3 | |
const _Ciconst_G_USER_DIRECTORY_PICTURES = 0x4 | |
const _Ciconst_G_USER_DIRECTORY_PUBLIC_SHARE = 0x5 | |
const _Ciconst_G_USER_DIRECTORY_TEMPLATES = 0x6 | |
const _Ciconst_G_USER_DIRECTORY_VIDEOS = 0x7 | |
func _Cfunc_CString(s string) *_Ctype_char { | |
p := _cgo_cmalloc(uint64(len(s)+1)) | |
pp := (*[1<<30]byte)(p) | |
copy(pp[:], s) | |
pp[len(s)] = 0 | |
return (*_Ctype_char)(p) | |
} | |
//go:linkname _cgo_runtime_gostring runtime.gostring | |
func _cgo_runtime_gostring(*_Ctype_char) string | |
func _Cfunc_GoString(p *_Ctype_char) string { | |
return _cgo_runtime_gostring(p) | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc__g_locale_from_utf8 | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc__g_locale_from_utf8 _cgo_187d42199012_Cfunc__g_locale_from_utf8 | |
var __cgofn__cgo_187d42199012_Cfunc__g_locale_from_utf8 byte | |
var _cgo_187d42199012_Cfunc__g_locale_from_utf8 = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc__g_locale_from_utf8) | |
//go:cgo_unsafe_args | |
func _Cfunc__g_locale_from_utf8(p0 *_Ctype_char, p1 _Ctype_int, p2 *_Ctype_int, p3 *_Ctype_int, p4 **_Ctype_struct__GError) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc__g_locale_from_utf8, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
_Cgo_use(p3) | |
_Cgo_use(p4) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc__g_locale_to_utf8 | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc__g_locale_to_utf8 _cgo_187d42199012_Cfunc__g_locale_to_utf8 | |
var __cgofn__cgo_187d42199012_Cfunc__g_locale_to_utf8 byte | |
var _cgo_187d42199012_Cfunc__g_locale_to_utf8 = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc__g_locale_to_utf8) | |
//go:cgo_unsafe_args | |
func _Cfunc__g_locale_to_utf8(p0 unsafe.Pointer, p1 _Ctype_int, p2 *_Ctype_int, p3 *_Ctype_int, p4 **_Ctype_struct__GError) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc__g_locale_to_utf8, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
_Cgo_use(p3) | |
_Cgo_use(p4) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc__g_object_set_addr | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc__g_object_set_addr _cgo_187d42199012_Cfunc__g_object_set_addr | |
var __cgofn__cgo_187d42199012_Cfunc__g_object_set_addr byte | |
var _cgo_187d42199012_Cfunc__g_object_set_addr = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc__g_object_set_addr) | |
//go:cgo_unsafe_args | |
func _Cfunc__g_object_set_addr(p0 _Ctype_gpointer, p1 *_Ctype_gchar, p2 unsafe.Pointer) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc__g_object_set_addr, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc__g_object_set_ptr | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc__g_object_set_ptr _cgo_187d42199012_Cfunc__g_object_set_ptr | |
var __cgofn__cgo_187d42199012_Cfunc__g_object_set_ptr byte | |
var _cgo_187d42199012_Cfunc__g_object_set_ptr = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc__g_object_set_ptr) | |
//go:cgo_unsafe_args | |
func _Cfunc__g_object_set_ptr(p0 _Ctype_gpointer, p1 *_Ctype_gchar, p2 unsafe.Pointer) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc__g_object_set_ptr, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc__g_utf8_validate | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc__g_utf8_validate _cgo_187d42199012_Cfunc__g_utf8_validate | |
var __cgofn__cgo_187d42199012_Cfunc__g_utf8_validate byte | |
var _cgo_187d42199012_Cfunc__g_utf8_validate = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc__g_utf8_validate) | |
//go:cgo_unsafe_args | |
func _Cfunc__g_utf8_validate(p0 unsafe.Pointer, p1 _Ctype_int, p2 unsafe.Pointer) (r1 _Ctype_gboolean) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc__g_utf8_validate, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_free_string | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_free_string _cgo_187d42199012_Cfunc_free_string | |
var __cgofn__cgo_187d42199012_Cfunc_free_string byte | |
var _cgo_187d42199012_Cfunc_free_string = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_free_string) | |
//go:cgo_unsafe_args | |
func _Cfunc_free_string(p0 *_Ctype_char) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_free_string, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_filename_from_uri | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_filename_from_uri _cgo_187d42199012_Cfunc_g_filename_from_uri | |
var __cgofn__cgo_187d42199012_Cfunc_g_filename_from_uri byte | |
var _cgo_187d42199012_Cfunc_g_filename_from_uri = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_filename_from_uri) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_filename_from_uri(p0 *_Ctype_gchar, p1 **_Ctype_gchar, p2 **_Ctype_struct__GError) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_filename_from_uri, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_filename_to_uri | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_filename_to_uri _cgo_187d42199012_Cfunc_g_filename_to_uri | |
var __cgofn__cgo_187d42199012_Cfunc_g_filename_to_uri byte | |
var _cgo_187d42199012_Cfunc_g_filename_to_uri = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_filename_to_uri) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_filename_to_uri(p0 *_Ctype_gchar, p1 *_Ctype_gchar, p2 **_Ctype_struct__GError) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_filename_to_uri, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_application_name | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_application_name _cgo_187d42199012_Cfunc_g_get_application_name | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_application_name byte | |
var _cgo_187d42199012_Cfunc_g_get_application_name = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_application_name) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_application_name() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_application_name, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_current_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_current_dir _cgo_187d42199012_Cfunc_g_get_current_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_current_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_current_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_current_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_current_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_current_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_home_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_home_dir _cgo_187d42199012_Cfunc_g_get_home_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_home_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_home_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_home_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_home_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_home_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_host_name | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_host_name _cgo_187d42199012_Cfunc_g_get_host_name | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_host_name byte | |
var _cgo_187d42199012_Cfunc_g_get_host_name = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_host_name) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_host_name() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_host_name, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_prgname | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_prgname _cgo_187d42199012_Cfunc_g_get_prgname | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_prgname byte | |
var _cgo_187d42199012_Cfunc_g_get_prgname = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_prgname) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_prgname() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_prgname, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_real_name | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_real_name _cgo_187d42199012_Cfunc_g_get_real_name | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_real_name byte | |
var _cgo_187d42199012_Cfunc_g_get_real_name = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_real_name) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_real_name() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_real_name, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_system_config_dirs | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_system_config_dirs _cgo_187d42199012_Cfunc_g_get_system_config_dirs | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_system_config_dirs byte | |
var _cgo_187d42199012_Cfunc_g_get_system_config_dirs = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_system_config_dirs) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_system_config_dirs() (r1 **_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_system_config_dirs, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_system_data_dirs | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_system_data_dirs _cgo_187d42199012_Cfunc_g_get_system_data_dirs | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_system_data_dirs byte | |
var _cgo_187d42199012_Cfunc_g_get_system_data_dirs = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_system_data_dirs) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_system_data_dirs() (r1 **_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_system_data_dirs, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_tmp_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_tmp_dir _cgo_187d42199012_Cfunc_g_get_tmp_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_tmp_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_tmp_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_tmp_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_tmp_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_tmp_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_user_cache_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_user_cache_dir _cgo_187d42199012_Cfunc_g_get_user_cache_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_user_cache_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_user_cache_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_user_cache_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_user_cache_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_user_cache_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_user_config_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_user_config_dir _cgo_187d42199012_Cfunc_g_get_user_config_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_user_config_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_user_config_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_user_config_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_user_config_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_user_config_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_user_data_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_user_data_dir _cgo_187d42199012_Cfunc_g_get_user_data_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_user_data_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_user_data_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_user_data_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_user_data_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_user_data_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_user_name | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_user_name _cgo_187d42199012_Cfunc_g_get_user_name | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_user_name byte | |
var _cgo_187d42199012_Cfunc_g_get_user_name = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_user_name) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_user_name() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_user_name, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_user_runtime_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_user_runtime_dir _cgo_187d42199012_Cfunc_g_get_user_runtime_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_user_runtime_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_user_runtime_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_user_runtime_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_user_runtime_dir() (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_user_runtime_dir, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_get_user_special_dir | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_get_user_special_dir _cgo_187d42199012_Cfunc_g_get_user_special_dir | |
var __cgofn__cgo_187d42199012_Cfunc_g_get_user_special_dir byte | |
var _cgo_187d42199012_Cfunc_g_get_user_special_dir = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_get_user_special_dir) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_get_user_special_dir(p0 _Ctype_GUserDirectory) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_get_user_special_dir, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_alloc | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_alloc _cgo_187d42199012_Cfunc_g_list_alloc | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_alloc byte | |
var _cgo_187d42199012_Cfunc_g_list_alloc = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_alloc) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_alloc() (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_alloc, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_append | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_append _cgo_187d42199012_Cfunc_g_list_append | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_append byte | |
var _cgo_187d42199012_Cfunc_g_list_append = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_append) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_append(p0 *_Ctype_struct__GList, p1 _Ctype_gpointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_append, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_concat | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_concat _cgo_187d42199012_Cfunc_g_list_concat | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_concat byte | |
var _cgo_187d42199012_Cfunc_g_list_concat = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_concat) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_concat(p0 *_Ctype_struct__GList, p1 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_concat, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_copy | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_copy _cgo_187d42199012_Cfunc_g_list_copy | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_copy byte | |
var _cgo_187d42199012_Cfunc_g_list_copy = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_copy) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_copy(p0 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_copy, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_delete_link | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_delete_link _cgo_187d42199012_Cfunc_g_list_delete_link | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_delete_link byte | |
var _cgo_187d42199012_Cfunc_g_list_delete_link = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_delete_link) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_delete_link(p0 *_Ctype_struct__GList, p1 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_delete_link, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_find | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_find _cgo_187d42199012_Cfunc_g_list_find | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_find byte | |
var _cgo_187d42199012_Cfunc_g_list_find = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_find) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_find(p0 *_Ctype_struct__GList, p1 _Ctype_gconstpointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_find, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_first | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_first _cgo_187d42199012_Cfunc_g_list_first | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_first byte | |
var _cgo_187d42199012_Cfunc_g_list_first = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_first) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_first(p0 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_first, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_free | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_free _cgo_187d42199012_Cfunc_g_list_free | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_free byte | |
var _cgo_187d42199012_Cfunc_g_list_free = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_free) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_free(p0 *_Ctype_struct__GList) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_free, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_free_1 | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_free_1 _cgo_187d42199012_Cfunc_g_list_free_1 | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_free_1 byte | |
var _cgo_187d42199012_Cfunc_g_list_free_1 = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_free_1) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_free_1(p0 *_Ctype_struct__GList) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_free_1, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_index | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_index _cgo_187d42199012_Cfunc_g_list_index | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_index byte | |
var _cgo_187d42199012_Cfunc_g_list_index = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_index) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_index(p0 *_Ctype_struct__GList, p1 _Ctype_gconstpointer) (r1 _Ctype_gint) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_index, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_insert | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_insert _cgo_187d42199012_Cfunc_g_list_insert | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_insert byte | |
var _cgo_187d42199012_Cfunc_g_list_insert = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_insert) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_insert(p0 *_Ctype_struct__GList, p1 _Ctype_gpointer, p2 _Ctype_gint) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_insert, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_insert_before | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_insert_before _cgo_187d42199012_Cfunc_g_list_insert_before | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_insert_before byte | |
var _cgo_187d42199012_Cfunc_g_list_insert_before = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_insert_before) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_insert_before(p0 *_Ctype_struct__GList, p1 *_Ctype_struct__GList, p2 _Ctype_gpointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_insert_before, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_last | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_last _cgo_187d42199012_Cfunc_g_list_last | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_last byte | |
var _cgo_187d42199012_Cfunc_g_list_last = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_last) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_last(p0 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_last, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_length | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_length _cgo_187d42199012_Cfunc_g_list_length | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_length byte | |
var _cgo_187d42199012_Cfunc_g_list_length = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_length) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_length(p0 *_Ctype_struct__GList) (r1 _Ctype_guint) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_length, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_nth | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_nth _cgo_187d42199012_Cfunc_g_list_nth | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_nth byte | |
var _cgo_187d42199012_Cfunc_g_list_nth = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_nth) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_nth(p0 *_Ctype_struct__GList, p1 _Ctype_guint) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_nth, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_nth_data | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_nth_data _cgo_187d42199012_Cfunc_g_list_nth_data | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_nth_data byte | |
var _cgo_187d42199012_Cfunc_g_list_nth_data = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_nth_data) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_nth_data(p0 *_Ctype_struct__GList, p1 _Ctype_guint) (r1 _Ctype_gpointer) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_nth_data, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_nth_prev | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_nth_prev _cgo_187d42199012_Cfunc_g_list_nth_prev | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_nth_prev byte | |
var _cgo_187d42199012_Cfunc_g_list_nth_prev = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_nth_prev) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_nth_prev(p0 *_Ctype_struct__GList, p1 _Ctype_guint) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_nth_prev, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_position | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_position _cgo_187d42199012_Cfunc_g_list_position | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_position byte | |
var _cgo_187d42199012_Cfunc_g_list_position = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_position) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_position(p0 *_Ctype_struct__GList, p1 *_Ctype_struct__GList) (r1 _Ctype_gint) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_position, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_prepend | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_prepend _cgo_187d42199012_Cfunc_g_list_prepend | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_prepend byte | |
var _cgo_187d42199012_Cfunc_g_list_prepend = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_prepend) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_prepend(p0 *_Ctype_struct__GList, p1 _Ctype_gpointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_prepend, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_remove | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_remove _cgo_187d42199012_Cfunc_g_list_remove | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_remove byte | |
var _cgo_187d42199012_Cfunc_g_list_remove = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_remove) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_remove(p0 *_Ctype_struct__GList, p1 _Ctype_gconstpointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_remove, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_remove_all | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_remove_all _cgo_187d42199012_Cfunc_g_list_remove_all | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_remove_all byte | |
var _cgo_187d42199012_Cfunc_g_list_remove_all = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_remove_all) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_remove_all(p0 *_Ctype_struct__GList, p1 _Ctype_gconstpointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_remove_all, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_remove_link | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_remove_link _cgo_187d42199012_Cfunc_g_list_remove_link | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_remove_link byte | |
var _cgo_187d42199012_Cfunc_g_list_remove_link = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_remove_link) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_remove_link(p0 *_Ctype_struct__GList, p1 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_remove_link, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_list_reverse | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_list_reverse _cgo_187d42199012_Cfunc_g_list_reverse | |
var __cgofn__cgo_187d42199012_Cfunc_g_list_reverse byte | |
var _cgo_187d42199012_Cfunc_g_list_reverse = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_list_reverse) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_list_reverse(p0 *_Ctype_struct__GList) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_list_reverse, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_object_get_data | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_object_get_data _cgo_187d42199012_Cfunc_g_object_get_data | |
var __cgofn__cgo_187d42199012_Cfunc_g_object_get_data byte | |
var _cgo_187d42199012_Cfunc_g_object_get_data = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_object_get_data) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_object_get_data(p0 *_Ctype_struct__GObject, p1 *_Ctype_gchar) (r1 _Ctype_gpointer) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_object_get_data, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_object_ref | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_object_ref _cgo_187d42199012_Cfunc_g_object_ref | |
var __cgofn__cgo_187d42199012_Cfunc_g_object_ref byte | |
var _cgo_187d42199012_Cfunc_g_object_ref = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_object_ref) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_object_ref(p0 _Ctype_gpointer) (r1 _Ctype_gpointer) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_object_ref, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_object_set_data | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_object_set_data _cgo_187d42199012_Cfunc_g_object_set_data | |
var __cgofn__cgo_187d42199012_Cfunc_g_object_set_data byte | |
var _cgo_187d42199012_Cfunc_g_object_set_data = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_object_set_data) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_object_set_data(p0 *_Ctype_struct__GObject, p1 *_Ctype_gchar, p2 _Ctype_gpointer) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_object_set_data, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_object_unref | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_object_unref _cgo_187d42199012_Cfunc_g_object_unref | |
var __cgofn__cgo_187d42199012_Cfunc_g_object_unref byte | |
var _cgo_187d42199012_Cfunc_g_object_unref = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_object_unref) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_object_unref(p0 _Ctype_gpointer) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_object_unref, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache _cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache | |
var __cgofn__cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache byte | |
var _cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_reload_user_special_dirs_cache() (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_reload_user_special_dirs_cache, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_set_application_name | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_set_application_name _cgo_187d42199012_Cfunc_g_set_application_name | |
var __cgofn__cgo_187d42199012_Cfunc_g_set_application_name byte | |
var _cgo_187d42199012_Cfunc_g_set_application_name = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_set_application_name) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_set_application_name(p0 *_Ctype_gchar) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_set_application_name, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_set_prgname | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_set_prgname _cgo_187d42199012_Cfunc_g_set_prgname | |
var __cgofn__cgo_187d42199012_Cfunc_g_set_prgname byte | |
var _cgo_187d42199012_Cfunc_g_set_prgname = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_set_prgname) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_set_prgname(p0 *_Ctype_gchar) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_set_prgname, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_alloc | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_alloc _cgo_187d42199012_Cfunc_g_slist_alloc | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_alloc byte | |
var _cgo_187d42199012_Cfunc_g_slist_alloc = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_alloc) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_alloc() (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_alloc, uintptr(unsafe.Pointer(&r1))) | |
if _Cgo_always_false { | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_append | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_append _cgo_187d42199012_Cfunc_g_slist_append | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_append byte | |
var _cgo_187d42199012_Cfunc_g_slist_append = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_append) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_append(p0 *_Ctype_struct__GSList, p1 _Ctype_gpointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_append, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_concat | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_concat _cgo_187d42199012_Cfunc_g_slist_concat | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_concat byte | |
var _cgo_187d42199012_Cfunc_g_slist_concat = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_concat) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_concat(p0 *_Ctype_struct__GSList, p1 *_Ctype_struct__GSList) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_concat, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_copy | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_copy _cgo_187d42199012_Cfunc_g_slist_copy | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_copy byte | |
var _cgo_187d42199012_Cfunc_g_slist_copy = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_copy) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_copy(p0 *_Ctype_struct__GSList) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_copy, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_delete_link | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_delete_link _cgo_187d42199012_Cfunc_g_slist_delete_link | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_delete_link byte | |
var _cgo_187d42199012_Cfunc_g_slist_delete_link = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_delete_link) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_delete_link(p0 *_Ctype_struct__GSList, p1 *_Ctype_struct__GSList) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_delete_link, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_find | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_find _cgo_187d42199012_Cfunc_g_slist_find | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_find byte | |
var _cgo_187d42199012_Cfunc_g_slist_find = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_find) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_find(p0 *_Ctype_struct__GSList, p1 _Ctype_gconstpointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_find, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_free | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_free _cgo_187d42199012_Cfunc_g_slist_free | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_free byte | |
var _cgo_187d42199012_Cfunc_g_slist_free = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_free) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_free(p0 *_Ctype_struct__GSList) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_free, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_free1 | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_free1 _cgo_187d42199012_Cfunc_g_slist_free1 | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_free1 byte | |
var _cgo_187d42199012_Cfunc_g_slist_free1 = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_free1) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_free1(p0 *_Ctype_struct__GSList) (r1 _Ctype_void) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_free1, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_index | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_index _cgo_187d42199012_Cfunc_g_slist_index | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_index byte | |
var _cgo_187d42199012_Cfunc_g_slist_index = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_index) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_index(p0 *_Ctype_struct__GSList, p1 _Ctype_gconstpointer) (r1 _Ctype_gint) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_index, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_insert_before | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_insert_before _cgo_187d42199012_Cfunc_g_slist_insert_before | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_insert_before byte | |
var _cgo_187d42199012_Cfunc_g_slist_insert_before = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_insert_before) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_insert_before(p0 *_Ctype_struct__GSList, p1 *_Ctype_struct__GSList, p2 _Ctype_gpointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_insert_before, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
_Cgo_use(p2) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_last | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_last _cgo_187d42199012_Cfunc_g_slist_last | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_last byte | |
var _cgo_187d42199012_Cfunc_g_slist_last = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_last) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_last(p0 *_Ctype_struct__GSList) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_last, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_length | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_length _cgo_187d42199012_Cfunc_g_slist_length | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_length byte | |
var _cgo_187d42199012_Cfunc_g_slist_length = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_length) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_length(p0 *_Ctype_struct__GSList) (r1 _Ctype_guint) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_length, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_nth | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_nth _cgo_187d42199012_Cfunc_g_slist_nth | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_nth byte | |
var _cgo_187d42199012_Cfunc_g_slist_nth = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_nth) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_nth(p0 *_Ctype_struct__GSList, p1 _Ctype_guint) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_nth, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_nth_data | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_nth_data _cgo_187d42199012_Cfunc_g_slist_nth_data | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_nth_data byte | |
var _cgo_187d42199012_Cfunc_g_slist_nth_data = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_nth_data) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_nth_data(p0 *_Ctype_struct__GSList, p1 _Ctype_guint) (r1 _Ctype_gpointer) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_nth_data, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_position | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_position _cgo_187d42199012_Cfunc_g_slist_position | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_position byte | |
var _cgo_187d42199012_Cfunc_g_slist_position = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_position) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_position(p0 *_Ctype_struct__GSList, p1 *_Ctype_struct__GSList) (r1 _Ctype_gint) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_position, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_prepend | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_prepend _cgo_187d42199012_Cfunc_g_slist_prepend | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_prepend byte | |
var _cgo_187d42199012_Cfunc_g_slist_prepend = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_prepend) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_prepend(p0 *_Ctype_struct__GSList, p1 _Ctype_gpointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_prepend, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_remove | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_remove _cgo_187d42199012_Cfunc_g_slist_remove | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_remove byte | |
var _cgo_187d42199012_Cfunc_g_slist_remove = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_remove) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_remove(p0 *_Ctype_struct__GSList, p1 _Ctype_gconstpointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_remove, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_remove_all | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_remove_all _cgo_187d42199012_Cfunc_g_slist_remove_all | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_remove_all byte | |
var _cgo_187d42199012_Cfunc_g_slist_remove_all = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_remove_all) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_remove_all(p0 *_Ctype_struct__GSList, p1 _Ctype_gconstpointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_remove_all, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
_Cgo_use(p1) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_g_slist_reverse | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_g_slist_reverse _cgo_187d42199012_Cfunc_g_slist_reverse | |
var __cgofn__cgo_187d42199012_Cfunc_g_slist_reverse byte | |
var _cgo_187d42199012_Cfunc_g_slist_reverse = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_g_slist_reverse) | |
//go:cgo_unsafe_args | |
func _Cfunc_g_slist_reverse(p0 *_Ctype_struct__GSList) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_g_slist_reverse, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_next_string | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_next_string _cgo_187d42199012_Cfunc_next_string | |
var __cgofn__cgo_187d42199012_Cfunc_next_string byte | |
var _cgo_187d42199012_Cfunc_next_string = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_next_string) | |
//go:cgo_unsafe_args | |
func _Cfunc_next_string(p0 *_Ctype_gchar) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_next_string, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_strlen | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_strlen _cgo_187d42199012_Cfunc_strlen | |
var __cgofn__cgo_187d42199012_Cfunc_strlen byte | |
var _cgo_187d42199012_Cfunc_strlen = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_strlen) | |
//go:cgo_unsafe_args | |
func _Cfunc_strlen(p0 *_Ctype_char) (r1 _Ctype_size_t) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_strlen, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_to_charptr | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_to_charptr _cgo_187d42199012_Cfunc_to_charptr | |
var __cgofn__cgo_187d42199012_Cfunc_to_charptr byte | |
var _cgo_187d42199012_Cfunc_to_charptr = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_to_charptr) | |
//go:cgo_unsafe_args | |
func _Cfunc_to_charptr(p0 *_Ctype_gchar) (r1 *_Ctype_char) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_to_charptr, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_to_charptr_from_gpointer | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_to_charptr_from_gpointer _cgo_187d42199012_Cfunc_to_charptr_from_gpointer | |
var __cgofn__cgo_187d42199012_Cfunc_to_charptr_from_gpointer byte | |
var _cgo_187d42199012_Cfunc_to_charptr_from_gpointer = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_to_charptr_from_gpointer) | |
//go:cgo_unsafe_args | |
func _Cfunc_to_charptr_from_gpointer(p0 _Ctype_gpointer) (r1 *_Ctype_char) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_to_charptr_from_gpointer, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_to_error | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_to_error _cgo_187d42199012_Cfunc_to_error | |
var __cgofn__cgo_187d42199012_Cfunc_to_error byte | |
var _cgo_187d42199012_Cfunc_to_error = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_to_error) | |
//go:cgo_unsafe_args | |
func _Cfunc_to_error(p0 unsafe.Pointer) (r1 *_Ctype_struct__GError) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_to_error, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_to_gcharptr | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_to_gcharptr _cgo_187d42199012_Cfunc_to_gcharptr | |
var __cgofn__cgo_187d42199012_Cfunc_to_gcharptr byte | |
var _cgo_187d42199012_Cfunc_to_gcharptr = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_to_gcharptr) | |
//go:cgo_unsafe_args | |
func _Cfunc_to_gcharptr(p0 *_Ctype_char) (r1 *_Ctype_gchar) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_to_gcharptr, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_to_list | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_to_list _cgo_187d42199012_Cfunc_to_list | |
var __cgofn__cgo_187d42199012_Cfunc_to_list byte | |
var _cgo_187d42199012_Cfunc_to_list = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_to_list) | |
//go:cgo_unsafe_args | |
func _Cfunc_to_list(p0 unsafe.Pointer) (r1 *_Ctype_struct__GList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_to_list, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc_to_slist | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc_to_slist _cgo_187d42199012_Cfunc_to_slist | |
var __cgofn__cgo_187d42199012_Cfunc_to_slist byte | |
var _cgo_187d42199012_Cfunc_to_slist = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc_to_slist) | |
//go:cgo_unsafe_args | |
func _Cfunc_to_slist(p0 unsafe.Pointer) (r1 *_Ctype_struct__GSList) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc_to_slist, uintptr(unsafe.Pointer(&p0))) | |
if _Cgo_always_false { | |
_Cgo_use(p0) | |
} | |
return | |
} | |
//go:cgo_import_static _cgo_187d42199012_Cfunc__Cmalloc | |
//go:linkname __cgofn__cgo_187d42199012_Cfunc__Cmalloc _cgo_187d42199012_Cfunc__Cmalloc | |
var __cgofn__cgo_187d42199012_Cfunc__Cmalloc byte | |
var _cgo_187d42199012_Cfunc__Cmalloc = unsafe.Pointer(&__cgofn__cgo_187d42199012_Cfunc__Cmalloc) | |
//go:linkname runtime_throw runtime.throw | |
func runtime_throw(string) | |
//go:cgo_unsafe_args | |
func _cgo_cmalloc(p0 uint64) (r1 unsafe.Pointer) { | |
_cgo_runtime_cgocall(_cgo_187d42199012_Cfunc__Cmalloc, uintptr(unsafe.Pointer(&p0))) | |
if r1 == nil { | |
runtime_throw("runtime: C malloc failed") | |
} | |
return | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package glib | |
//go:cgo_import_dynamic free free "" | |
//go:cgo_import_dynamic g_filename_from_uri g_filename_from_uri "" | |
//go:cgo_import_dynamic g_filename_to_uri g_filename_to_uri "" | |
//go:cgo_import_dynamic g_get_application_name g_get_application_name "" | |
//go:cgo_import_dynamic g_get_current_dir g_get_current_dir "" | |
//go:cgo_import_dynamic g_get_home_dir g_get_home_dir "" | |
//go:cgo_import_dynamic g_get_host_name g_get_host_name "" | |
//go:cgo_import_dynamic g_get_prgname g_get_prgname "" | |
//go:cgo_import_dynamic g_get_real_name g_get_real_name "" | |
//go:cgo_import_dynamic g_get_system_config_dirs g_get_system_config_dirs "" | |
//go:cgo_import_dynamic g_get_system_data_dirs g_get_system_data_dirs "" | |
//go:cgo_import_dynamic g_get_tmp_dir g_get_tmp_dir "" | |
//go:cgo_import_dynamic g_get_user_cache_dir g_get_user_cache_dir "" | |
//go:cgo_import_dynamic g_get_user_config_dir g_get_user_config_dir "" | |
//go:cgo_import_dynamic g_get_user_data_dir g_get_user_data_dir "" | |
//go:cgo_import_dynamic g_get_user_name g_get_user_name "" | |
//go:cgo_import_dynamic g_get_user_runtime_dir g_get_user_runtime_dir "" | |
//go:cgo_import_dynamic g_get_user_special_dir g_get_user_special_dir "" | |
//go:cgo_import_dynamic g_list_alloc g_list_alloc "" | |
//go:cgo_import_dynamic g_list_append g_list_append "" | |
//go:cgo_import_dynamic g_list_concat g_list_concat "" | |
//go:cgo_import_dynamic g_list_copy g_list_copy "" | |
//go:cgo_import_dynamic g_list_delete_link g_list_delete_link "" | |
//go:cgo_import_dynamic g_list_find g_list_find "" | |
//go:cgo_import_dynamic g_list_first g_list_first "" | |
//go:cgo_import_dynamic g_list_free g_list_free "" | |
//go:cgo_import_dynamic g_list_free_1 g_list_free_1 "" | |
//go:cgo_import_dynamic g_list_index g_list_index "" | |
//go:cgo_import_dynamic g_list_insert g_list_insert "" | |
//go:cgo_import_dynamic g_list_insert_before g_list_insert_before "" | |
//go:cgo_import_dynamic g_list_last g_list_last "" | |
//go:cgo_import_dynamic g_list_length g_list_length "" | |
//go:cgo_import_dynamic g_list_nth g_list_nth "" | |
//go:cgo_import_dynamic g_list_nth_data g_list_nth_data "" | |
//go:cgo_import_dynamic g_list_nth_prev g_list_nth_prev "" | |
//go:cgo_import_dynamic g_list_position g_list_position "" | |
//go:cgo_import_dynamic g_list_prepend g_list_prepend "" | |
//go:cgo_import_dynamic g_list_remove g_list_remove "" | |
//go:cgo_import_dynamic g_list_remove_all g_list_remove_all "" | |
//go:cgo_import_dynamic g_list_remove_link g_list_remove_link "" | |
//go:cgo_import_dynamic g_list_reverse g_list_reverse "" | |
//go:cgo_import_dynamic g_locale_from_utf8 g_locale_from_utf8 "" | |
//go:cgo_import_dynamic g_object_get_data g_object_get_data "" | |
//go:cgo_import_dynamic g_object_ref g_object_ref "" | |
//go:cgo_import_dynamic g_object_set g_object_set "" | |
//go:cgo_import_dynamic g_object_set_data g_object_set_data "" | |
//go:cgo_import_dynamic g_object_unref g_object_unref "" | |
//go:cgo_import_dynamic g_reload_user_special_dirs_cache g_reload_user_special_dirs_cache "" | |
//go:cgo_import_dynamic g_set_application_name g_set_application_name "" | |
//go:cgo_import_dynamic g_set_prgname g_set_prgname "" | |
//go:cgo_import_dynamic g_slist_alloc g_slist_alloc "" | |
//go:cgo_import_dynamic g_slist_append g_slist_append "" | |
//go:cgo_import_dynamic g_slist_concat g_slist_concat "" | |
//go:cgo_import_dynamic g_slist_copy g_slist_copy "" | |
//go:cgo_import_dynamic g_slist_delete_link g_slist_delete_link "" | |
//go:cgo_import_dynamic g_slist_find g_slist_find "" | |
//go:cgo_import_dynamic g_slist_free g_slist_free "" | |
//go:cgo_import_dynamic g_slist_free_1 g_slist_free_1 "" | |
//go:cgo_import_dynamic g_slist_index g_slist_index "" | |
//go:cgo_import_dynamic g_slist_insert_before g_slist_insert_before "" | |
//go:cgo_import_dynamic g_slist_last g_slist_last "" | |
//go:cgo_import_dynamic g_slist_length g_slist_length "" | |
//go:cgo_import_dynamic g_slist_nth g_slist_nth "" | |
//go:cgo_import_dynamic g_slist_nth_data g_slist_nth_data "" | |
//go:cgo_import_dynamic g_slist_position g_slist_position "" | |
//go:cgo_import_dynamic g_slist_prepend g_slist_prepend "" | |
//go:cgo_import_dynamic g_slist_remove g_slist_remove "" | |
//go:cgo_import_dynamic g_slist_remove_all g_slist_remove_all "" | |
//go:cgo_import_dynamic g_slist_reverse g_slist_reverse "" | |
//go:cgo_import_dynamic g_utf8_validate g_utf8_validate "" | |
//go:cgo_import_dynamic malloc malloc "" | |
//go:cgo_import_dynamic strlen strlen "" | |
//go:cgo_import_dynamic dyld_stub_binder dyld_stub_binder "" | |
//go:cgo_import_dynamic _ _ "/usr/local/opt/glib/lib/libgobject-2.0.0.dylib" | |
//go:cgo_import_dynamic _ _ "/usr/local/opt/glib/lib/libglib-2.0.0.dylib" | |
//go:cgo_import_dynamic _ _ "/usr/local/opt/gettext/lib/libintl.8.dylib" | |
//go:cgo_import_dynamic _ _ "/usr/lib/libSystem.B.dylib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by cgo - DO NOT EDIT | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:3 | |
package glib | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:3 | |
import _cgo_unsafe "unsafe" | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:9 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:8 | |
import ( | |
"reflect" | |
"sync" | |
"unsafe" | |
) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:15 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:14 | |
type ContextStorage struct { | |
lastId int | |
m sync.Mutex | |
values map[int]interface{} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:21 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:20 | |
func NewContextStorage() *ContextStorage { | |
return &ContextStorage{values: make(map[int]interface{})} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:25 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:24 | |
func (c *ContextStorage) Add(value interface{}) int { | |
c.m.Lock() | |
newId := c.lastId | |
c.values[newId] = value | |
c.lastId++ | |
c.m.Unlock() | |
return newId | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:34 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:33 | |
func (c *ContextStorage) Get(id int) (value interface{}, found bool) { | |
c.m.Lock() | |
value, found = c.values[id] | |
c.m.Unlock() | |
return | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:41 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:40 | |
func (c *ContextStorage) Remove(id int) { | |
c.m.Lock() | |
delete(c.values, id) | |
c.m.Unlock() | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:47 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:46 | |
func (c *ContextStorage) Len() int { | |
c.m.Lock() | |
result := len(c.values) | |
c.m.Unlock() | |
return result | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:54 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:53 | |
var ( | |
sourcefunc_contexts = NewContextStorage() | |
callback_contexts = NewContextStorage() | |
) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:59 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:58 | |
func gbool(b bool) _Ctype_gboolean { | |
if b { | |
return _Ctype_gboolean(1) | |
} | |
return _Ctype_gboolean(0) | |
} | |
func gobool(b _Ctype_gboolean) bool { | |
if b != 0 { | |
return true | |
} | |
return false | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:73 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:72 | |
func toSlice(ar **_Ctype_gchar) []string { | |
result := make([]string, 0) | |
for i := 0; ; i++ { | |
str := _Cfunc_GoString(_Cfunc_to_charptr(*ar)) | |
if str == "" { | |
break | |
} | |
result = append(result, str) | |
*ar = _Cfunc_next_string(*ar) | |
} | |
return result | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:86 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:85 | |
func GPtrToString(p interface{}) string { | |
pp := (_Ctype_gpointer)(p.(unsafe.Pointer)) | |
return _Cfunc_GoString(func(_cgo0 _Ctype_gpointer) *_Ctype_char { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:87 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:87 | |
return _Cfunc_to_charptr_from_gpointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:87 | |
}(pp)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:94 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:93 | |
func GetApplicationName() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_application_name())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:98 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:97 | |
func SetApplicationName(name string) { | |
str := _Cfunc_CString(name) | |
defer _Cfunc_free_string(str) | |
_Cfunc_g_set_application_name(_Cfunc_to_gcharptr(str)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:104 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:103 | |
func GetPrgName() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_prgname())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:108 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:107 | |
func SetPrgname(name string) { | |
str := _Cfunc_CString(name) | |
defer _Cfunc_free_string(str) | |
_Cfunc_g_set_prgname(_Cfunc_to_gcharptr(str)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:117 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:116 | |
func GetUserName() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_user_name())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:121 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:120 | |
func GetRealName() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_real_name())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:125 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:124 | |
func GetUserCacheDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_user_cache_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:129 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:128 | |
func GetUserDataDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_user_data_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:133 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:132 | |
func GetUserConfigDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_user_config_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:137 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:136 | |
func GetUserRuntimeDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_user_runtime_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:141 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:140 | |
type ConnectFlags _Ctype_GConnectFlags | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:143 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:142 | |
const ( | |
ConnectAfter ConnectFlags = _Ciconst_G_CONNECT_AFTER | |
ConnectSwapped ConnectFlags = _Ciconst_G_CONNECT_SWAPPED | |
) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:148 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:147 | |
type UserDirectory _Ctype_GUserDirectory | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:150 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:149 | |
const ( | |
UserDirectoryDesktop UserDirectory = _Ciconst_G_USER_DIRECTORY_DESKTOP | |
UserDirectoryDocuments UserDirectory = _Ciconst_G_USER_DIRECTORY_DOCUMENTS | |
UserDirectoryDownload UserDirectory = _Ciconst_G_USER_DIRECTORY_DOWNLOAD | |
UserDirectoryMusic UserDirectory = _Ciconst_G_USER_DIRECTORY_MUSIC | |
UserDirectoryPictures UserDirectory = _Ciconst_G_USER_DIRECTORY_PICTURES | |
UserDirectoryPublicShare UserDirectory = _Ciconst_G_USER_DIRECTORY_PUBLIC_SHARE | |
UserDirectoryTemplates UserDirectory = _Ciconst_G_USER_DIRECTORY_TEMPLATES | |
UserDirectoryVideos UserDirectory = _Ciconst_G_USER_DIRECTORY_VIDEOS | |
) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:161 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:160 | |
func GetUserSpecialDir(directory UserDirectory) string { | |
result := _Cfunc_g_get_user_special_dir(_Ctype_GUserDirectory(directory)) | |
return _Cfunc_GoString(_Cfunc_to_charptr(result)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:166 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:165 | |
func ReloadUserSpecialDirsCache() { | |
_Cfunc_g_reload_user_special_dirs_cache() | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:173 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:172 | |
func GetSystemDataDirs() []string { | |
return toSlice(_Cfunc_g_get_system_data_dirs()) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:177 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:176 | |
func GetSystemConfigDirs() []string { | |
return toSlice(_Cfunc_g_get_system_config_dirs()) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:181 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:180 | |
func GetHostName() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_host_name())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:185 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:184 | |
func GetHomeDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_home_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:189 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:188 | |
func GetTmpDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_tmp_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:193 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:192 | |
func GetCurrentDir() string { | |
return _Cfunc_GoString(_Cfunc_to_charptr(_Cfunc_g_get_current_dir())) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:200 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:199 | |
func Utf8Validate(str []byte, len int, bar **byte) bool { | |
return gobool(func(_cgo0 _cgo_unsafe.Pointer, _cgo1 _Ctype_int, _cgo2 _cgo_unsafe.Pointer) _Ctype_gboolean { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:200 | |
_cgoCheckPointer(_cgo0, str) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:200 | |
_cgoCheckPointer(_cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:200 | |
return _Cfunc__g_utf8_validate(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:200 | |
}(unsafe.Pointer(&str[0]), | |
_Ctype_int(len), unsafe.Pointer(bar))) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:205 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:204 | |
func FilenameFromUri(uri string) (filename string, hostname string, err error) { | |
str := _Cfunc_CString(uri) | |
defer _Cfunc_free_string(str) | |
var gerror *_Ctype_struct__GError | |
var ptr *_Ctype_gchar | |
filename = _Cfunc_GoString(_Cfunc_to_charptr(func(_cgo0 *_Ctype_gchar, _cgo1 **_Ctype_gchar, _cgo2 **_Ctype_struct__GError) *_Ctype_gchar { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:209 | |
_cgoCheckPointer(_cgo1, true) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:209 | |
_cgoCheckPointer(_cgo2, true) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:209 | |
return _Cfunc_g_filename_from_uri(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:209 | |
}(_Cfunc_to_gcharptr(str), &ptr, &gerror))) | |
if unsafe.Pointer(gerror) != nil { | |
err = ErrorFromNative(unsafe.Pointer(gerror)) | |
} else { | |
err = nil | |
} | |
hostname = "" | |
if ptr != nil { | |
hostname = _Cfunc_GoString(_Cfunc_to_charptr(ptr)) | |
} | |
return | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:223 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:222 | |
func FilenameToUri(filename string, hostname string) (uri string, err error) { | |
pfilename := _Cfunc_CString(filename) | |
defer _Cfunc_free_string(pfilename) | |
phostname := _Cfunc_CString(hostname) | |
defer _Cfunc_free_string(phostname) | |
var gerror *_Ctype_struct__GError | |
uri = _Cfunc_GoString(_Cfunc_to_charptr(func(_cgo0 *_Ctype_gchar, _cgo1 *_Ctype_gchar, _cgo2 **_Ctype_struct__GError) *_Ctype_gchar { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:228 | |
_cgoCheckPointer(_cgo2, true) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:228 | |
return _Cfunc_g_filename_to_uri(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:228 | |
}(_Cfunc_to_gcharptr(pfilename), _Cfunc_to_gcharptr(phostname), &gerror))) | |
if unsafe.Pointer(gerror) != nil { | |
err = ErrorFromNative(unsafe.Pointer(gerror)) | |
} else { | |
err = nil | |
} | |
return | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:238 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:237 | |
func LocaleToUtf8(opsysstring []byte) (ret string, bytes_read int, bytes_written int, err *Error) { | |
var gerror *_Ctype_struct__GError | |
var cbytes_read, cbytes_written _Ctype_int | |
str := func(_cgo0 _cgo_unsafe.Pointer, _cgo1 _Ctype_int, _cgo2 *_Ctype_int, _cgo3 *_Ctype_int, _cgo4 **_Ctype_struct__GError) *_Ctype_gchar { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:240 | |
_cgoCheckPointer(_cgo0, opsysstring) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:240 | |
_cgoCheckPointer(_cgo4, true) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:240 | |
return _Cfunc__g_locale_to_utf8(_cgo0, _cgo1, _cgo2, _cgo3, _cgo4) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:240 | |
}(unsafe.Pointer(&opsysstring[0]), _Ctype_int(len(opsysstring)), &cbytes_read, &cbytes_written, &gerror) | |
if unsafe.Pointer(str) != nil { | |
defer _Cfunc_free_string(_Cfunc_to_charptr(str)) | |
ret = _Cfunc_GoString(_Cfunc_to_charptr(str)) | |
} else { | |
ret = "" | |
} | |
bytes_read = int(cbytes_read) | |
bytes_written = int(cbytes_written) | |
if unsafe.Pointer(gerror) != nil { | |
err = ErrorFromNative(unsafe.Pointer(gerror)) | |
} else { | |
err = nil | |
} | |
return | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:258 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:257 | |
func LocaleFromUtf8(utf8string string) (ret []byte, bytes_read int, bytes_written int, err *Error) { | |
var gerror *_Ctype_struct__GError | |
var cbytes_read, cbytes_written _Ctype_int | |
src := _Cfunc_CString(utf8string) | |
defer _Cfunc_free_string(src) | |
str := func(_cgo0 *_Ctype_char, _cgo1 _Ctype_int, _cgo2 *_Ctype_int, _cgo3 *_Ctype_int, _cgo4 **_Ctype_struct__GError) *_Ctype_gchar { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:262 | |
_cgoCheckPointer(_cgo4, true) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:262 | |
return _Cfunc__g_locale_from_utf8(_cgo0, _cgo1, _cgo2, _cgo3, _cgo4) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:262 | |
}(src, _Ctype_int(_Cfunc_strlen(src)), &cbytes_read, &cbytes_written, &gerror) | |
if unsafe.Pointer(str) != nil { | |
defer _Cfunc_free_string(_Cfunc_to_charptr(str)) | |
ret = ([]byte)(_Cfunc_GoString(_Cfunc_to_charptr(str))) | |
} else { | |
ret = ([]byte)("") | |
} | |
bytes_read = int(cbytes_read) | |
bytes_written = int(cbytes_written) | |
if unsafe.Pointer(gerror) != nil { | |
err = ErrorFromNative(unsafe.Pointer(gerror)) | |
} else { | |
err = nil | |
} | |
return | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:283 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:282 | |
type List struct { | |
GList *_Ctype_struct__GList | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:287 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:286 | |
func ListFromNative(l unsafe.Pointer) *List { | |
return &List{func(_cgo0 _cgo_unsafe.Pointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:287 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:287 | |
return _Cfunc_to_list(_cgo0) | |
}(l)} | |
} | |
func (v List) Data() interface{} { | |
return v.GList.data | |
} | |
func (v List) Append(data unsafe.Pointer) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gpointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:294 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:294 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:294 | |
return _Cfunc_g_list_append(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:294 | |
}(v.GList, _Ctype_gpointer(data))} | |
} | |
func (v List) Prepend(data unsafe.Pointer) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gpointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:297 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:297 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:297 | |
return _Cfunc_g_list_prepend(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:297 | |
}(v.GList, _Ctype_gpointer(data))} | |
} | |
func (v List) Insert(data unsafe.Pointer, pos int) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gpointer, _cgo2 _Ctype_gint) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:300 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:300 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:300 | |
return _Cfunc_g_list_insert(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:300 | |
}(v.GList, _Ctype_gpointer(data), _Ctype_gint(pos))} | |
} | |
func (v List) InsertBefore(sib List, data unsafe.Pointer) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 *_Ctype_struct__GList, _cgo2 _Ctype_gpointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:303 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:303 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:303 | |
_cgoCheckPointer(_cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:303 | |
return _Cfunc_g_list_insert_before(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:303 | |
}(v.GList, sib.GList, _Ctype_gpointer(data))} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:310 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:309 | |
func (v List) Remove(data unsafe.Pointer) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gconstpointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:310 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:310 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:310 | |
return _Cfunc_g_list_remove(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:310 | |
}(v.GList, _Ctype_gconstpointer(data))} | |
} | |
func (v List) RemoveLink(link List) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:313 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:313 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:313 | |
return _Cfunc_g_list_remove_link(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:313 | |
}(v.GList, link.GList)} | |
} | |
func (v List) DeleteLink(link List) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:316 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:316 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:316 | |
return _Cfunc_g_list_delete_link(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:316 | |
}(v.GList, link.GList)} | |
} | |
func (v List) RemoveAll(data unsafe.Pointer) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gconstpointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:319 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:319 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:319 | |
return _Cfunc_g_list_remove_all(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:319 | |
}(v.GList, _Ctype_gconstpointer(data))} | |
} | |
func (v List) Free() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:321 | |
func(_cgo0 *_Ctype_struct__GList) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:321 | |
_cgoCheckPointer(_cgo0) | |
_Cfunc_g_list_free(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:322 | |
}(v.GList) | |
} | |
func GListAlloc() *List { | |
return &List{_Cfunc_g_list_alloc()} | |
} | |
func (v List) Free1() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:327 | |
func(_cgo0 *_Ctype_struct__GList) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:327 | |
_cgoCheckPointer(_cgo0) | |
_Cfunc_g_list_free_1(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:328 | |
}(v.GList) | |
} | |
func (v List) Length() uint { | |
return uint(func(_cgo0 *_Ctype_struct__GList) _Ctype_guint { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:331 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:331 | |
return _Cfunc_g_list_length(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:331 | |
}(v.GList)) | |
} | |
func (v List) Copy() *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:334 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:334 | |
return _Cfunc_g_list_copy(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:334 | |
}(v.GList)} | |
} | |
func (v List) Reverse() *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:337 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:337 | |
return _Cfunc_g_list_reverse(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:337 | |
}(v.GList)} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:355 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:354 | |
func (v List) Concat(link List) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:355 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:355 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:355 | |
return _Cfunc_g_list_concat(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:355 | |
}(v.GList, link.GList)} | |
} | |
func (v List) ForEach(callback func(unsafe.Pointer, interface{}), user_datas ...interface{}) { | |
var user_data interface{} | |
if len(user_datas) > 0 { | |
user_data = user_datas[0] | |
} | |
l := v.First() | |
for n := uint(0); n < l.Length(); n++ { | |
callback(l.NthData(n), user_data) | |
} | |
} | |
func (v List) First() *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:368 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:368 | |
return _Cfunc_g_list_first(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:368 | |
}(v.GList)} | |
} | |
func (v List) Last() *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:371 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:371 | |
return _Cfunc_g_list_last(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:371 | |
}(v.GList)} | |
} | |
func (v List) Nth(n uint) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_guint) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:374 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:374 | |
return _Cfunc_g_list_nth(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:374 | |
}(v.GList, _Ctype_guint(n))} | |
} | |
func (v List) NthData(n uint) unsafe.Pointer { | |
return unsafe.Pointer(func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_guint) _Ctype_gpointer { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:377 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:377 | |
return _Cfunc_g_list_nth_data(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:377 | |
}(v.GList, _Ctype_guint(n))) | |
} | |
func (v List) NthPrev(n uint) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_guint) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:380 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:380 | |
return _Cfunc_g_list_nth_prev(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:380 | |
}(v.GList, _Ctype_guint(n))} | |
} | |
func (v List) Find(data unsafe.Pointer) *List { | |
return &List{func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gconstpointer) *_Ctype_struct__GList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:383 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:383 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:383 | |
return _Cfunc_g_list_find(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:383 | |
}(v.GList, _Ctype_gconstpointer(data))} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:390 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:389 | |
func (v List) Position(link List) int { | |
return int(func(_cgo0 *_Ctype_struct__GList, _cgo1 *_Ctype_struct__GList) _Ctype_gint { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:390 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:390 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:390 | |
return _Cfunc_g_list_position(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:390 | |
}(v.GList, link.GList)) | |
} | |
func (v List) Index(data unsafe.Pointer) int { | |
return int(func(_cgo0 *_Ctype_struct__GList, _cgo1 _Ctype_gconstpointer) _Ctype_gint { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:393 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:393 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:393 | |
return _Cfunc_g_list_index(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:393 | |
}(v.GList, _Ctype_gconstpointer(data))) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:400 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:399 | |
type SList struct { | |
GSList *_Ctype_struct__GSList | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:404 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:403 | |
func SListFromNative(sl unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 _cgo_unsafe.Pointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:404 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:404 | |
return _Cfunc_to_slist(_cgo0) | |
}(sl)} | |
} | |
func (v SList) ToSList() *_Ctype_struct__GSList { | |
return v.GSList | |
} | |
func (v SList) Data() unsafe.Pointer { | |
return unsafe.Pointer(v.GSList.data) | |
} | |
func GSListAlloc() *SList { | |
return &SList{_Cfunc_g_slist_alloc()} | |
} | |
func (v SList) Free() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:416 | |
func(_cgo0 *_Ctype_struct__GSList) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:416 | |
_cgoCheckPointer(_cgo0) | |
_Cfunc_g_slist_free(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:417 | |
}(v.GSList) | |
} | |
func (v SList) Free1() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:419 | |
func(_cgo0 *_Ctype_struct__GSList) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:419 | |
_cgoCheckPointer(_cgo0) | |
_Cfunc_g_slist_free1(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:420 | |
}(v.GSList) | |
} | |
func (v SList) Append(data unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_gpointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:423 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:423 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:423 | |
return _Cfunc_g_slist_append(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:423 | |
}(v.GSList, _Ctype_gpointer(data))} | |
} | |
func (v SList) Prepend(data unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_gpointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:426 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:426 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:426 | |
return _Cfunc_g_slist_prepend(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:426 | |
}(v.GSList, _Ctype_gpointer(data))} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:433 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:432 | |
func (v SList) InsertBefore(sibling SList, data unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 *_Ctype_struct__GSList, _cgo2 _Ctype_gpointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:433 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:433 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:433 | |
_cgoCheckPointer(_cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:433 | |
return _Cfunc_g_slist_insert_before(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:433 | |
}(v.GSList, sibling.GSList, _Ctype_gpointer(data))} | |
} | |
func (v SList) Concat(llink SList) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 *_Ctype_struct__GSList) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:436 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:436 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:436 | |
return _Cfunc_g_slist_concat(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:436 | |
}(v.GSList, llink.GSList)} | |
} | |
func (v SList) Remove(data unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_gconstpointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:439 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:439 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:439 | |
return _Cfunc_g_slist_remove(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:439 | |
}(v.GSList, _Ctype_gconstpointer(data))} | |
} | |
func (v SList) RemoveAll(data unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_gconstpointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:442 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:442 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:442 | |
return _Cfunc_g_slist_remove_all(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:442 | |
}(v.GSList, _Ctype_gconstpointer(data))} | |
} | |
func (v SList) RemoveLink(llink SList) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 *_Ctype_struct__GSList) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:445 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:445 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:445 | |
return _Cfunc_g_slist_delete_link(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:445 | |
}(v.GSList, llink.GSList)} | |
} | |
func (v SList) DeleteLink(llink SList) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 *_Ctype_struct__GSList) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:448 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:448 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:448 | |
return _Cfunc_g_slist_delete_link(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:448 | |
}(v.GSList, llink.GSList)} | |
} | |
func (v SList) Reverse() *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:451 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:451 | |
return _Cfunc_g_slist_reverse(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:451 | |
}(v.GSList)} | |
} | |
func (v SList) Copy() *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:454 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:454 | |
return _Cfunc_g_slist_copy(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:454 | |
}(v.GSList)} | |
} | |
func (v SList) Nth(n uint) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_guint) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:457 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:457 | |
return _Cfunc_g_slist_nth(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:457 | |
}(v.GSList, _Ctype_guint(n))} | |
} | |
func (v SList) Find(data unsafe.Pointer) *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_gconstpointer) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:460 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:460 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:460 | |
return _Cfunc_g_slist_find(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:460 | |
}(v.GSList, _Ctype_gconstpointer(data))} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:465 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:464 | |
func (v SList) Position(llink SList) int { | |
return int(func(_cgo0 *_Ctype_struct__GSList, _cgo1 *_Ctype_struct__GSList) _Ctype_gint { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:465 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:465 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:465 | |
return _Cfunc_g_slist_position(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:465 | |
}(v.GSList, llink.GSList)) | |
} | |
func (v SList) Index(data unsafe.Pointer) int { | |
return int(func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_gconstpointer) _Ctype_gint { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:468 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:468 | |
_cgoCheckPointer(_cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:468 | |
return _Cfunc_g_slist_index(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:468 | |
}(v.GSList, _Ctype_gconstpointer(data))) | |
} | |
func (v SList) Last() *SList { | |
return &SList{func(_cgo0 *_Ctype_struct__GSList) *_Ctype_struct__GSList { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:471 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:471 | |
return _Cfunc_g_slist_last(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:471 | |
}(v.GSList)} | |
} | |
func (v SList) Length() uint { | |
return uint(func(_cgo0 *_Ctype_struct__GSList) _Ctype_guint { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:474 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:474 | |
return _Cfunc_g_slist_length(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:474 | |
}(v.GSList)) | |
} | |
func (v SList) ForEach(callback func(unsafe.Pointer, interface{}), user_datas ...interface{}) { | |
var user_data interface{} | |
if len(user_datas) > 0 { | |
user_data = user_datas[0] | |
} | |
for n := uint(0); n < v.Length(); n++ { | |
callback(v.Nth(n).Data(), user_data) | |
} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:489 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:488 | |
func (v SList) NthData(n uint) unsafe.Pointer { | |
return unsafe.Pointer(func(_cgo0 *_Ctype_struct__GSList, _cgo1 _Ctype_guint) _Ctype_gpointer { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:489 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:489 | |
return _Cfunc_g_slist_nth_data(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:489 | |
}(v.GSList, _Ctype_guint(n))) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:496 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:495 | |
type Error struct { | |
GError *_Ctype_struct__GError | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:500 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:499 | |
func (v *Error) Error() string { | |
return v.Message() | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:504 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:503 | |
func (v *Error) Message() string { | |
if unsafe.Pointer(v.GError) == nil || unsafe.Pointer(v.GError.message) == nil { | |
return "" | |
} | |
return _Cfunc_GoString(_Cfunc_to_charptr(v.GError.message)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:511 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:510 | |
func ErrorFromNative(err unsafe.Pointer) *Error { | |
return &Error{func(_cgo0 _cgo_unsafe.Pointer) *_Ctype_struct__GError { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:511 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:511 | |
return _Cfunc_to_error(_cgo0) | |
}(err)} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:519 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:518 | |
type ObjectLike interface { | |
Ref() | |
Unref() | |
Connect(s string, f interface{}, data ...interface{}) | |
} | |
type GObject struct { | |
Object unsafe.Pointer | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:528 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:527 | |
func ObjectFromNative(object unsafe.Pointer) *GObject { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:531 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:530 | |
return &GObject{ | |
object} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:535 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:534 | |
func (v *GObject) Ref() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:534 | |
func(_cgo0 _Ctype_gpointer) _Ctype_gpointer { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:534 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:534 | |
return _Cfunc_g_object_ref(_cgo0) | |
}(_Ctype_gpointer(v.Object)) | |
} | |
func (v *GObject) Unref() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:537 | |
func(_cgo0 _Ctype_gpointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:537 | |
_cgoCheckPointer(_cgo0) | |
_Cfunc_g_object_unref(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:538 | |
}(_Ctype_gpointer(v.Object)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:542 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:541 | |
func (v *GObject) SetData(s string, p unsafe.Pointer) { | |
ptr := _Cfunc_CString(s) | |
defer _Cfunc_free_string(ptr) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:543 | |
func(_cgo0 *_Ctype_struct__GObject, _cgo1 *_Ctype_gchar, _cgo2 _Ctype_gpointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:543 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:543 | |
_cgoCheckPointer(_cgo2) | |
_Cfunc_g_object_set_data(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:544 | |
}((*_Ctype_struct__GObject)(v.Object), _Cfunc_to_gcharptr(ptr), (_Ctype_gpointer)(p)) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:548 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:547 | |
func (v *GObject) GetData(s string) unsafe.Pointer { | |
ptr := _Cfunc_CString(s) | |
defer _Cfunc_free_string(ptr) | |
p := func(_cgo0 *_Ctype_struct__GObject, _cgo1 *_Ctype_gchar) _Ctype_gpointer { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:550 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:550 | |
return _Cfunc_g_object_get_data(_cgo0, _cgo1) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:550 | |
}((*_Ctype_struct__GObject)(v.Object), _Cfunc_to_gcharptr(ptr)) | |
return unsafe.Pointer(p) | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:555 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:554 | |
func (v *GObject) Set(name string, value interface{}) { | |
ptr := _Cfunc_CString(name) | |
defer _Cfunc_free_string(ptr) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:559 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:558 | |
if _, ok := value.(WrappedObject); ok { | |
value = value.(WrappedObject).GetInternalValue() | |
} | |
if _, ok := value.(GObject); ok { | |
value = value.(GObject).Object | |
} | |
if _, ok := value.(GValue); ok { | |
value = value.(GValue).Value | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:569 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:568 | |
switch value.(type) { | |
case bool: | |
bval := gbool(value.(bool)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:570 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:570 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:570 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:571 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&bval)) | |
case byte: | |
bval := _Ctype_gchar(value.(byte)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:573 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:573 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:573 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:574 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&bval)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:577 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:576 | |
case int: | |
ival := _Ctype_int(value.(int)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:577 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:577 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:577 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:578 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&ival)) | |
case uint: | |
uval := _Ctype_guint(value.(uint)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:580 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:580 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:580 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:581 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&uval)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:584 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:583 | |
case float32: | |
f32val := _Ctype_gfloat(value.(float32)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:584 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:584 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:584 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:585 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&f32val)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:588 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:587 | |
case float64: | |
f64val := _Ctype_gfloat(value.(float64)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:588 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:588 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:588 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:589 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&f64val)) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:592 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:591 | |
case string: | |
pval := _Cfunc_CString(value.(string)) | |
defer _Cfunc_free_string(pval) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:593 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:593 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:593 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:594 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&pval)) | |
default: | |
if pv, ok := value.(*[0]uint8); ok { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:596 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:596 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:596 | |
_cgoCheckPointer(_cgo2) | |
_Cfunc__g_object_set_ptr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:597 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(pv)) | |
} else { | |
av := reflect.ValueOf(value) | |
if av.Kind() == reflect.Ptr { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:600 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:600 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:600 | |
_cgoCheckPointer(_cgo2) | |
_Cfunc__g_object_set_ptr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:601 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(av.Pointer())) | |
} else if av.CanAddr() { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:602 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:602 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:602 | |
_cgoCheckPointer(_cgo2) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:603 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(av.UnsafeAddr())) | |
} else { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:604 | |
func(_cgo0 _Ctype_gpointer, _cgo1 *_Ctype_gchar, _cgo2 _cgo_unsafe.Pointer) { | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:604 | |
_cgoCheckPointer(_cgo0) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:604 | |
_cgoCheckPointer(_cgo2, true) | |
_Cfunc__g_object_set_addr(_cgo0, _cgo1, _cgo2) | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:605 | |
}(_Ctype_gpointer(v.Object), _Cfunc_to_gcharptr(ptr), unsafe.Pointer(&value)) | |
} | |
} | |
} | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:673 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:672 | |
type GValue struct { | |
Value _Ctype_struct__GValue | |
} | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:719 | |
//line /Users/josh/tmp/src/github.com/mattn/go-gtk/glib/glib.go:718 | |
type WrappedObject interface { | |
GetInternalValue() unsafe.Pointer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment