Exemplo n.º 1
0
        public RC.WorldService LookupService(string url)
        {
            IntPtr url_as_native = GLib.Marshaller.StringToPtrGStrdup(url);
            IntPtr raw_ret       = rc_world_multi_lookup_service(Handle, url_as_native);

            RC.WorldService ret = GLib.Object.GetObject(raw_ret) as RC.WorldService;
            GLib.Marshaller.Free(url_as_native);
            return(ret);
        }
Exemplo n.º 2
0
        public RC.WorldService LookupServiceById(string id)
        {
            IntPtr id_as_native = GLib.Marshaller.StringToPtrGStrdup(id);
            IntPtr raw_ret      = rc_world_multi_lookup_service_by_id(Handle, id_as_native);

            RC.WorldService ret = GLib.Object.GetObject(raw_ret) as RC.WorldService;
            GLib.Marshaller.Free(id_as_native);
            return(ret);
        }