Exemple #1
0
        public Cdn.Import GetImportFromPath(string path)
        {
            IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup(path);
            IntPtr raw_ret     = cdn_network_get_import_from_path(Handle, native_path);

            Cdn.Import ret = GLib.Object.GetObject(raw_ret) as Cdn.Import;
            GLib.Marshaller.Free(native_path);
            return(ret);
        }
Exemple #2
0
 public ImportAlias(Cdn.Import source) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(ImportAlias))
     {
         ArrayList vals  = new ArrayList();
         ArrayList names = new ArrayList();
         if (source != null)
         {
             names.Add("source");
             vals.Add(new GLib.Value(source));
         }
         CreateNativeObject((string[])names.ToArray(typeof(string)), (GLib.Value[])vals.ToArray(typeof(GLib.Value)));
         return;
     }
     Raw = cdn_import_alias_new(source == null ? IntPtr.Zero : source.Handle);
 }
Exemple #3
0
 protected Import(Cdn.Import obj) : base(obj)
 {
 }