Lines Matching refs:IntPtr
45 internal delegate int PollCallback (IntPtr ufds, uint nfds, int timeout); in PollCallback()
46 internal delegate void ClientCallback (IntPtr client, ClientState state, IntPtr userData); in ClientCallback()
121 private IntPtr handle;
124 private IntPtr spoll;
129 …private static extern IntPtr avahi_client_new (IntPtr poll, ClientFlags flags, ClientCallback hand… in avahi_client_new()
130 IntPtr userData, out int error); in avahi_client_new()
133 private static extern void avahi_client_free (IntPtr handle); in avahi_client_free()
136 private static extern IntPtr avahi_client_get_version_string (IntPtr handle); in avahi_client_get_version_string()
139 private static extern IntPtr avahi_client_get_host_name (IntPtr handle); in avahi_client_get_host_name()
142 private static extern IntPtr avahi_client_get_domain_name (IntPtr handle); in avahi_client_get_domain_name()
145 private static extern IntPtr avahi_client_get_host_name_fqdn (IntPtr handle); in avahi_client_get_host_name_fqdn()
148 private static extern ClientState avahi_client_get_state (IntPtr handle); in avahi_client_get_state()
151 private static extern int avahi_client_errno (IntPtr handle); in avahi_client_errno()
154 private static extern IntPtr avahi_simple_poll_new (); in avahi_simple_poll_new()
157 private static extern IntPtr avahi_simple_poll_get (IntPtr spoll); in avahi_simple_poll_get()
160 private static extern void avahi_simple_poll_free (IntPtr spoll); in avahi_simple_poll_free()
163 private static extern int avahi_simple_poll_loop (IntPtr spoll); in avahi_simple_poll_loop()
166 private static extern void avahi_simple_poll_set_func (IntPtr spoll, PollCallback cb); in avahi_simple_poll_set_func()
169 private static extern void avahi_simple_poll_quit (IntPtr spoll); in avahi_simple_poll_quit()
172 private static extern uint avahi_client_get_local_service_cookie (IntPtr client); in avahi_client_get_local_service_cookie()
175 … private static extern int avahi_service_name_join (IntPtr buf, int len, byte[] name, byte[] type, in avahi_service_name_join()
179 … private static extern int avahi_service_name_split (byte[] service, IntPtr name, int name_len, in avahi_service_name_split()
180 IntPtr type, int type_len, in avahi_service_name_split()
181 IntPtr domain, int domain_len); in avahi_service_name_split()
185 private static extern int poll(IntPtr ufds, uint nfds, int timeout); in poll()
189 internal IntPtr Handle
263 IntPtr poll = avahi_simple_poll_get (spoll); in Client()
267 handle = avahi_client_new (poll, flags, cb, IntPtr.Zero, out error); in Client()
286 if (handle != IntPtr.Zero) { in Dispose()
289 handle = IntPtr.Zero; in Dispose()
302 IntPtr buf = Stdlib.malloc ((ulong) len); in JoinServiceName()
324 IntPtr namePtr = Stdlib.malloc ((ulong) len); in SplitServiceName()
325 IntPtr typePtr = Stdlib.malloc ((ulong) len); in SplitServiceName()
326 IntPtr domainPtr = Stdlib.malloc ((ulong) len); in SplitServiceName()
359 private void OnClientCallback (IntPtr client, ClientState state, IntPtr userData) in OnClientCallback()
365 private int OnPollCallback (IntPtr ufds, uint nfds, int timeout) { in OnPollCallback()