v0.2.1 c0399be

gnativesocketaddress.go RawHistoryFolder

1// Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gio
3
4import (
5	"structs"
6	"unsafe"
7
8	"github.com/ebitengine/purego"
9
10	"github.com/bnema/puregotk/pkg/core"
11	"github.com/bnema/puregotk/v4/gobject/types"
12)
13
14type NativeSocketAddressClass struct {
15	_ structs.HostLayout
16
17	ParentClass SocketAddressClass
18}
19
20func (x *NativeSocketAddressClass) GoPointer() uintptr {
21	return uintptr(unsafe.Pointer(x))
22}
23
24type NativeSocketAddressPrivate struct {
25	_ structs.HostLayout
26}
27
28func (x *NativeSocketAddressPrivate) GoPointer() uintptr {
29	return uintptr(unsafe.Pointer(x))
30}
31
32// A socket address of some unknown native type.
33//
34// This corresponds to a general `struct sockaddr` of a type not otherwise
35// handled by GLib.
36type NativeSocketAddress struct {
37	SocketAddress
38}
39
40var xNativeSocketAddressGLibType func() types.GType
41
42func NativeSocketAddressGLibType() types.GType {
43	return xNativeSocketAddressGLibType()
44}
45
46func NativeSocketAddressNewFromInternalPtr(ptr uintptr) *NativeSocketAddress {
47	cls := &NativeSocketAddress{}
48	cls.Ptr = ptr
49	return cls
50}
51
52var xNewNativeSocketAddress func(uintptr, uint) uintptr
53
54// Creates a new #GNativeSocketAddress for @native and @len.
55func NewNativeSocketAddress(NativeVar uintptr, LenVar uint) *NativeSocketAddress {
56	var cls *NativeSocketAddress
57
58	cret := xNewNativeSocketAddress(NativeVar, LenVar)
59
60	if cret == 0 {
61		return nil
62	}
63	cls = &NativeSocketAddress{}
64	cls.Ptr = cret
65	return cls
66}
67
68func (c *NativeSocketAddress) GoPointer() uintptr {
69	if c == nil {
70		return 0
71	}
72	return c.Ptr
73}
74
75func (c *NativeSocketAddress) SetGoPointer(ptr uintptr) {
76	c.Ptr = ptr
77}
78
79// Creates a #GSocketAddressEnumerator for @connectable.
80func (x *NativeSocketAddress) Enumerate() *SocketAddressEnumerator {
81	var cls *SocketAddressEnumerator
82
83	cret := XGSocketConnectableEnumerate(x.GoPointer())
84
85	if cret == 0 {
86		return nil
87	}
88	cls = &SocketAddressEnumerator{}
89	cls.Ptr = cret
90	return cls
91}
92
93// Creates a #GSocketAddressEnumerator for @connectable that will
94// return a #GProxyAddress for each of its addresses that you must connect
95// to via a proxy.
96//
97// If @connectable does not implement
98// g_socket_connectable_proxy_enumerate(), this will fall back to
99// calling g_socket_connectable_enumerate().
100func (x *NativeSocketAddress) ProxyEnumerate() *SocketAddressEnumerator {
101	var cls *SocketAddressEnumerator
102
103	cret := XGSocketConnectableProxyEnumerate(x.GoPointer())
104
105	if cret == 0 {
106		return nil
107	}
108	cls = &SocketAddressEnumerator{}
109	cls.Ptr = cret
110	return cls
111}
112
113// Format a #GSocketConnectable as a string. This is a human-readable format for
114// use in debugging output, and is not a stable serialization format. It is not
115// suitable for use in user interfaces as it exposes too much information for a
116// user.
117//
118// If the #GSocketConnectable implementation does not support string formatting,
119// the implementation’s type name will be returned as a fallback.
120func (x *NativeSocketAddress) ToString() string {
121
122	cret := XGSocketConnectableToString(x.GoPointer())
123	return cret
124}
125
126func init() {
127	core.SetPackageName("GIO", "gio-2.0")
128	core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0"})
129	var libs []uintptr
130	for _, libPath := range core.GetPaths("GIO") {
131		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
132		if err != nil {
133			panic(err)
134		}
135		libs = append(libs, lib)
136	}
137
138	core.PuregoSafeRegister(&xNativeSocketAddressGLibType, libs, "g_native_socket_address_get_type")
139
140	core.PuregoSafeRegister(&xNewNativeSocketAddress, libs, "g_native_socket_address_new")
141
142}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close