Lines Matching refs:IntPtr
14 … private static extern IntPtr aui_service_dialog_new (string title, IntPtr parent, IntPtr dummy); in aui_service_dialog_new()
17 …te static extern void aui_service_dialog_set_browse_service_typesv (IntPtr dialog, IntPtr[] types); in aui_service_dialog_set_browse_service_typesv()
20 private static extern IntPtr aui_service_dialog_get_browse_service_types (IntPtr dialog); in aui_service_dialog_get_browse_service_types()
23 private static extern IntPtr aui_service_dialog_get_domain (IntPtr dialog); in aui_service_dialog_get_domain()
26 private static extern void aui_service_dialog_set_domain (IntPtr dialog, IntPtr domain); in aui_service_dialog_set_domain()
29 private static extern IntPtr aui_service_dialog_get_service_type (IntPtr dialog); in aui_service_dialog_get_service_type()
32 private static extern void aui_service_dialog_set_service_type (IntPtr dialog, IntPtr type); in aui_service_dialog_set_service_type()
35 private static extern IntPtr aui_service_dialog_get_service_name (IntPtr dialog); in aui_service_dialog_get_service_name()
38 private static extern void aui_service_dialog_set_service_name (IntPtr dialog, IntPtr type); in aui_service_dialog_set_service_name()
41 private static extern IntPtr aui_service_dialog_get_address (IntPtr dialog); in aui_service_dialog_get_address()
44 private static extern UInt16 aui_service_dialog_get_port (IntPtr dialog); in aui_service_dialog_get_port()
47 private static extern IntPtr aui_service_dialog_get_host_name (IntPtr dialog); in aui_service_dialog_get_host_name()
50 private static extern IntPtr aui_service_dialog_get_txt_data (IntPtr dialog); in aui_service_dialog_get_txt_data()
53 private static extern bool aui_service_dialog_get_resolve_service (IntPtr dialog); in aui_service_dialog_get_resolve_service()
56 private static extern void aui_service_dialog_set_resolve_service (IntPtr dialog, bool val); in aui_service_dialog_set_resolve_service()
59 private static extern bool aui_service_dialog_get_resolve_host_name (IntPtr dialog); in aui_service_dialog_get_resolve_host_name()
62 … private static extern void aui_service_dialog_set_resolve_host_name (IntPtr dialog, bool val); in aui_service_dialog_set_resolve_host_name()
65 private static extern Protocol aui_service_dialog_get_address_family (IntPtr dialog); in aui_service_dialog_get_address_family()
68 … private static extern void aui_service_dialog_set_address_family (IntPtr dialog, Protocol proto); in aui_service_dialog_set_address_family()
71 private static extern IntPtr avahi_address_snprint (IntPtr buf, int size, IntPtr address); in avahi_address_snprint()
74 private static extern IntPtr avahi_string_list_get_next (IntPtr list); in avahi_string_list_get_next()
77 private static extern IntPtr avahi_string_list_get_text (IntPtr list); in avahi_string_list_get_text()
80 private static extern int avahi_string_list_get_size (IntPtr list); in avahi_string_list_get_size()
84 IntPtr arr = aui_service_dialog_get_browse_service_types (Raw);
89 IntPtr ptr = Marshal.ReadIntPtr (arr, i * Marshal.SizeOf (typeof (IntPtr)));
91 if (ptr == IntPtr.Zero)
99 IntPtr[] types;
101 types = new IntPtr[] { IntPtr.Zero };
103 types = new IntPtr[value.Length + 1];
109 types[value.Length] = IntPtr.Zero;
115 if (types[i] != IntPtr.Zero)
127 IntPtr type = GLib.Marshaller.StringToPtrGStrdup (value);
137 IntPtr name = GLib.Marshaller.StringToPtrGStrdup (value);
165 IntPtr domain = GLib.Marshaller.StringToPtrGStrdup (value);
174 IntPtr txt = aui_service_dialog_get_txt_data (Raw);
176 for (IntPtr l = txt; l != IntPtr.Zero; l = avahi_string_list_get_next (l)) {
177 IntPtr buf = avahi_string_list_get_text (l);
215 Raw = aui_service_dialog_new (title, parent == null ? IntPtr.Zero : parent.Handle, in ServiceDialog()
216 IntPtr.Zero); in ServiceDialog()
223 private static IPAddress PtrToAddress (IntPtr ptr) in PtrToAddress()
227 if (ptr != IntPtr.Zero) { in PtrToAddress()
228 IntPtr buf = Stdlib.malloc (256); in PtrToAddress()
229 IntPtr addrPtr = avahi_address_snprint (buf, 256, ptr); in PtrToAddress()