예제 #1
0
        public RC.World Dup()
        {
            IntPtr raw_ret = rc_world_dup(Handle);

            RC.World ret = GLib.Object.GetObject(raw_ret) as RC.World;
            return(ret);
        }
예제 #2
0
        public QueueItem(RC.World arg1, RC.Package package, string reason)
        {
            IntPtr reason_as_native = GLib.Marshaller.StringToPtrGStrdup(reason);

            Raw = rc_queue_item_new_uninstall(arg1 == null ? IntPtr.Zero : arg1.Handle, package == null ? IntPtr.Zero : package.Handle, reason_as_native);
            GLib.Marshaller.Free(reason_as_native);
        }
        public void NativeCallback(IntPtr world, IntPtr channel, bool subs_status)
        {
            RC.World   _arg0 = GLib.Object.GetObject(world) as RC.World;
            RC.Channel _arg1 = channel == IntPtr.Zero ? null : (RC.Channel)GLib.Opaque.GetOpaque(channel, typeof(RC.Channel), false);
            bool       _arg2 = subs_status;

            managed(_arg0, _arg1, _arg2);
        }
예제 #4
0
        public bool NativeCallback(IntPtr world, IntPtr install_packages, IntPtr remove_packages, int flags)
        {
            RC.World   _arg0 = GLib.Object.GetObject(world) as RC.World;
            GLib.SList _arg1 = new GLib.SList(install_packages);
            GLib.SList _arg2 = new GLib.SList(remove_packages);
            int        _arg3 = flags;

            return((bool)managed(_arg0, _arg1, _arg2, _arg3));
        }
예제 #5
0
        public unsafe RollbackInfo(RC.World world, GLib.SList install_packages, GLib.SList remove_packages)
        {
            IntPtr error = IntPtr.Zero;

            Raw = rc_rollback_info_new(world == null ? IntPtr.Zero : world.Handle, install_packages.Handle, remove_packages.Handle, out error);
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
        }
예제 #6
0
 protected virtual void OnSubworldRemoved(RC.World subworld)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
     GLib.Value[]    vals            = new GLib.Value [2];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(subworld);
     inst_and_params.Append(vals [1]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
예제 #7
0
        private static RC.World MountManaged(string url)
        {
            Uri uri = new Uri(url);

            Type type = (Type)services[uri.Scheme];

            Type[] argTypes = new Type[1];
            argTypes[0] = typeof(string);

            System.Reflection.ConstructorInfo info = type.GetConstructor(argTypes);

            object[] args = new object[1];
            args[0] = url;

            RC.World world = (RC.World)info.Invoke(args);
            ((RC.WorldService)world).Assemble();

            return(world);
        }
예제 #8
0
 public IntPtr NativeCallback(IntPtr world)
 {
     RC.World _arg0 = GLib.Object.GetObject(world) as RC.World;
     return(((RC.World)managed(_arg0)).Handle);
 }
 public bool NativeCallback(IntPtr world, IntPtr package)
 {
     RC.World   _arg0 = GLib.Object.GetObject(world) as RC.World;
     RC.Package _arg1 = package == IntPtr.Zero ? null : (RC.Package)GLib.Opaque.GetOpaque(package, typeof(RC.Package), false);
     return((bool)managed(_arg0, _arg1));
 }
예제 #10
0
 public QueueItem(RC.World arg1, RC.Package package)
 {
     Raw = rc_queue_item_new_install(arg1 == null ? IntPtr.Zero : arg1.Handle, package == null ? IntPtr.Zero : package.Handle);
 }
예제 #11
0
 public QueueItem(RC.World arg1, RC.PackageDep dep)
 {
     Raw = rc_queue_item_new_require(arg1 == null ? IntPtr.Zero : arg1.Handle, dep == null ? IntPtr.Zero : dep.Handle);
 }
예제 #12
0
 public QueueItem(RC.World arg1, RC.PackageDep dep, RC.Package package)
 {
     Raw = rc_queue_item_new_conflict(arg1 == null ? IntPtr.Zero : arg1.Handle, dep == null ? IntPtr.Zero : dep.Handle, package == null ? IntPtr.Zero : package.Handle);
 }
예제 #13
0
        public static QueueItem NewGroup(RC.World arg1)
        {
            QueueItem result = new QueueItem(rc_queue_item_new_group(arg1 == null ? IntPtr.Zero : arg1.Handle));

            return(result);
        }
 public bool NativeCallback(IntPtr world, IntPtr channel)
 {
     RC.World   _arg0 = GLib.Object.GetObject(world) as RC.World;
     RC.Channel _arg1 = channel == IntPtr.Zero ? null : (RC.Channel)GLib.Opaque.GetOpaque(channel, typeof(RC.Channel), false);
     return((bool)managed(_arg0, _arg1));
 }
예제 #15
0
 public QueueItem(RC.World arg1)
 {
     Raw = rc_queue_item_new_branch(arg1 == null ? IntPtr.Zero : arg1.Handle);
 }
예제 #16
0
 public void NativeCallback(IntPtr world)
 {
     RC.World _arg0 = GLib.Object.GetObject(world) as RC.World;
     managed(_arg0);
 }
 public void NativeCallback(IntPtr world, IntPtr _lock)
 {
     RC.World        _arg0 = GLib.Object.GetObject(world) as RC.World;
     RC.PackageMatch _arg1 = _lock == IntPtr.Zero ? null : (RC.PackageMatch)GLib.Opaque.GetOpaque(_lock, typeof(RC.PackageMatch), false);
     managed(_arg0, _arg1);
 }
 public bool NativeCallback(IntPtr world, IntPtr user_data)
 {
     RC.World _arg0 = GLib.Object.GetObject(world) as RC.World;
     return((bool)managed(_arg0));
 }
예제 #19
0
 public void AddSubworld(RC.World arg1)
 {
     rc_world_multi_add_subworld(Handle, arg1 == null ? IntPtr.Zero : arg1.Handle);
 }
예제 #20
0
 public void RemoveSubworld(RC.World arg1)
 {
     rc_world_multi_remove_subworld(Handle, arg1 == null ? IntPtr.Zero : arg1.Handle);
 }