search for: create_flags

Displaying 20 results from an estimated 22 matches for "create_flags".

2019 Jun 27
2
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
...run.in | 9 ++++++++ > rust/Cargo.lock | 6 +++++ > rust/Cargo.toml | 4 +--- > rust/tests/010_load.rs | 24 +++++++++++++++++++ > rust/tests/020_create.rs | 24 +++++++++++++++++++ > rust/tests/030_create_flags.rs | 30 ++++++++++++++++++++++++ > rust/tests/040_create_multiple.rs | 38 +++++++++++++++++++++++++++++++ > 8 files changed, 142 insertions(+), 6 deletions(-) > create mode 100644 rust/Cargo.lock > create mode 100644 rust/tests/010_load.rs > create mode 100644 rust/tests/020_...
2019 Jun 27
1
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
...t; > > rust/Cargo.lock | 6 +++++ > > > rust/Cargo.toml | 4 +--- > > > rust/tests/010_load.rs | 24 +++++++++++++++++++ > > > rust/tests/020_create.rs | 24 +++++++++++++++++++ > > > rust/tests/030_create_flags.rs | 30 ++++++++++++++++++++++++ > > > rust/tests/040_create_multiple.rs | 38 +++++++++++++++++++++++++++++++ > > > 8 files changed, 142 insertions(+), 6 deletions(-) > > > create mode 100644 rust/Cargo.lock > > > create mode 100644 rust/tests/010_load.rs...
2019 Jun 27
0
[PATCH 3/9] Rust bindings: Add 4 bindings tests
...| 13 ++++++++--- run.in | 9 ++++++++ rust/Cargo.lock | 6 +++++ rust/Cargo.toml | 4 +--- rust/tests/010_load.rs | 24 +++++++++++++++++++ rust/tests/020_create.rs | 24 +++++++++++++++++++ rust/tests/030_create_flags.rs | 30 ++++++++++++++++++++++++ rust/tests/040_create_multiple.rs | 38 +++++++++++++++++++++++++++++++ 8 files changed, 142 insertions(+), 6 deletions(-) create mode 100644 rust/Cargo.lock create mode 100644 rust/tests/010_load.rs create mode 100644 rust/tests/020_create.rs create mode 10...
2019 Jun 27
0
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
...| 9 ++++++++ > > rust/Cargo.lock | 6 +++++ > > rust/Cargo.toml | 4 +--- > > rust/tests/010_load.rs | 24 +++++++++++++++++++ > > rust/tests/020_create.rs | 24 +++++++++++++++++++ > > rust/tests/030_create_flags.rs | 30 ++++++++++++++++++++++++ > > rust/tests/040_create_multiple.rs | 38 +++++++++++++++++++++++++++++++ > > 8 files changed, 142 insertions(+), 6 deletions(-) > > create mode 100644 rust/Cargo.lock > > create mode 100644 rust/tests/010_load.rs > > create mo...
2019 Aug 05
0
[PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
...ror> { let g = unsafe { guestfs_create() }; if g.is_null() { Err(error::Error::Create) } else { - Ok(Handle { g }) + let callbacks = collections::HashMap::new(); + Ok(Handle { g, callbacks }) } } - pub fn create_flags(flags: CreateFlags) -> Result<Handle, error::Error> { + pub fn create_flags(flags: CreateFlags) -> Result<Handle<'a>, error::Error> { let g = unsafe { guestfs_create_flags(flags.to_libc_int()) }; if g.is_null() { Err(error::Error::Create...
2019 Jun 27
16
[PATCH 1/9] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> --- Makefile.am | 4 ++++ configure.ac | 3 +++ generator/Makefile.am | 3 +++ generator/bindtests.ml | 3 +++ generator/bindtests.mli | 1 + generator/main.ml | 5 +++++ generator/rust.ml | 34 ++++++++++++++++++++++++++++++++++ generator/rust.mli | 19 +++++++++++++++++++
2019 Jun 27
4
Re: [PATCH 9/9] Rust bindings: Complete bindings
Patch 9 is a kind of dumping ground of all kinds of stuff. It may be better to spend some time with git rebase -i trying to work this into more coherent patches. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live
2019 Jun 27
0
[PATCH 2/9] Rust bindings: Add create / close functions
...pen Events let generate_rust () = - generate_header CStyle LGPLv2plus; \ No newline at end of file + generate_header CStyle LGPLv2plus; + + pr " +#[allow(non_camel_case_types)] +enum guestfs_h {} + +extern \"C\" { + fn guestfs_create() -> *mut guestfs_h; + fn guestfs_create_flags(flags: i64) -> *mut guestfs_h; + fn guestfs_close(g: *mut guestfs_h); + static GUESTFS_CREATE_NO_ENVIRONMENT: i64; + static GUESTFS_CREATE_NO_CLOSE_ON_EXIT: i64; +} + +pub struct Handle { + g: *mut guestfs_h, +} + +impl Drop for Handle { + fn drop(&mut self) { + unsafe...
2019 Jul 02
16
[PATCH] Add Rust bindings
I fixed the patch I submitted before based on comments, and there are some commits which are merged or divided. So, I will re-send all the patches. Regards, Hiroyuki Katsura
2019 Jul 20
0
[PATCH] Rust bindings: Add Rust bindings
...0 rust/src/error.rs | 68 ++++ rust/src/lib.rs | 7 + rust/src/utils.rs | 136 +++++++ rust/tests/.gitkeep | 0 rust/tests/010_load.rs | 24 ++ rust/tests/020_create.rs | 24 ++ rust/tests/030_create_flags.rs | 29 ++ rust/tests/040_create_multiple.rs | 38 ++ rust/tests/050_handle_properties.rs | 62 +++ rust/tests/070_opt_args.rs | 41 ++ rust/tests/080_version.rs | 26 ++ rust/tests/090_ret_values.rs | 61 +++ rust/tests/100_launch.rs | 65 ++++ 3...
2019 Jul 23
2
Re: [PATCH] Rust bindings: Add Rust bindings
...| 68 ++++ > rust/src/lib.rs | 7 + > rust/src/utils.rs | 136 +++++++ > rust/tests/.gitkeep | 0 > rust/tests/010_load.rs | 24 ++ > rust/tests/020_create.rs | 24 ++ > rust/tests/030_create_flags.rs | 29 ++ > rust/tests/040_create_multiple.rs | 38 ++ > rust/tests/050_handle_properties.rs | 62 +++ > rust/tests/070_opt_args.rs | 41 ++ > rust/tests/080_version.rs | 26 ++ > rust/tests/090_ret_values.rs | 61 +++ > rust/tests/100_laun...
2019 Jul 23
0
Re: [PATCH] Rust bindings: Add Rust bindings
...0 rust/src/error.rs | 70 ++++ rust/src/lib.rs | 8 + rust/src/utils.rs | 146 ++++++++ rust/tests/.gitkeep | 0 rust/tests/010_load.rs | 24 ++ rust/tests/020_create.rs | 24 ++ rust/tests/030_create_flags.rs | 29 ++ rust/tests/040_create_multiple.rs | 38 ++ rust/tests/050_handle_properties.rs | 62 ++++ rust/tests/070_opt_args.rs | 41 ++ rust/tests/080_version.rs | 26 ++ rust/tests/090_ret_values.rs | 61 +++ rust/tests/100_launch.rs | 65 ++++...
2019 Jul 20
2
Re: [PATCH] Rust bindings: Add Rust bindings
...| 21 + > > rust/src/.gitkeep | 0 > > rust/src/bin/.gitkeep | 0 > > rust/tests/.gitkeep | 0 > > rust/tests/010_load.rs | 24 + > > rust/tests/020_create.rs | 24 + > > rust/tests/030_create_flags.rs | 29 + > > rust/tests/040_create_multiple.rs | 38 ++ > > rust/tests/050_handle_properties.rs | 62 +++ > > rust/tests/070_opt_args.rs | 41 ++ > > rust/tests/080_version.rs | 26 + > > rust/tests/090_ret_values.rs | 61 +++ > &g...
2019 Jul 08
2
Re: [PATCH] Add Rust bindings
On Mon, Jul 08, 2019 at 10:04:57AM +0100, Richard W.M. Jones wrote: >On Mon, Jul 08, 2019 at 10:49:55AM +0200, Martin Kletzander wrote: >> On Mon, Jul 08, 2019 at 10:10:10AM +0200, Pino Toscano wrote: >> >On Saturday, 6 July 2019 13:03:24 CEST Martin Kletzander wrote: >> >>Just one thing, the Cargo.toml includes a version under which the crate would be >>
2019 Jun 27
0
[PATCH 9/9] Rust bindings: Complete bindings
...| 2 + rust/Makefile.am | 16 +- rust/run-bindtests | 23 ++ rust/run-tests | 21 ++ rust/src/bin/.gitkeep | 0 rust/tests/010_load.rs | 28 +- rust/tests/020_create.rs | 28 +- rust/tests/030_create_flags.rs | 29 +- rust/tests/040_create_multiple.rs | 28 +- rust/tests/050_handle_properties.rs | 31 +- rust/tests/070_opt_args.rs | 39 +-- rust/tests/080_version.rs | 31 +- rust/tests/090_ret_values.rs | 61 ++++ rust/tests/100_launch.rs | 65 +++++...
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
...++ rust/src/bin/.gitkeep | 0 rust/src/error.rs | 70 ++++ rust/src/lib.rs | 26 ++ rust/src/utils.rs | 146 ++++++++ rust/tests/010_load.rs | 24 ++ rust/tests/020_create.rs | 24 ++ rust/tests/030_create_flags.rs | 30 ++ rust/tests/040_create_multiple.rs | 38 ++ rust/tests/050_handle_properties.rs | 62 ++++ rust/tests/070_opt_args.rs | 41 ++ rust/tests/080_version.rs | 26 ++ rust/tests/090_ret_values.rs | 61 +++ rust/tests/100_launch.rs | 65 ++++...
2019 Jul 17
2
[PATCH] Rust bindings: Add Rust bindings
...| 23 + rust/run-tests | 21 + rust/src/.gitkeep | 0 rust/src/bin/.gitkeep | 0 rust/tests/.gitkeep | 0 rust/tests/010_load.rs | 24 + rust/tests/020_create.rs | 24 + rust/tests/030_create_flags.rs | 29 + rust/tests/040_create_multiple.rs | 38 ++ rust/tests/050_handle_properties.rs | 62 +++ rust/tests/070_opt_args.rs | 41 ++ rust/tests/080_version.rs | 26 + rust/tests/090_ret_values.rs | 61 +++ rust/tests/100_launch.rs | 65 +++ 27 f...
2019 Jul 26
4
Re: [PATCH] Rust bindings: Add Rust bindings
Hi Hiroyuki, sorry for the late reply. Most of the work is definitely nice! There are few notes below, although they are not big issues. I will check this patch once more on monday, especially the rust parts. Otherwise, I'd say that we are close to merging this :) On Tuesday, 23 July 2019 10:37:17 CEST Hiroyuki Katsura wrote: > From: Hiroyuki_Katsura
2019 Aug 05
3
Re: [PATCH] Rust bindings: Implement Event features
I fixed based on comments. I'll send these two patches to this mailing list. - Fix Handle -> Handle<'a> - Add events Regards, Hiroyuki 2019年8月1日(木) 0:01 Pino Toscano <ptoscano@redhat.com>: > Hi Hiroyuki, > > On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote: > > This patch includes: > > > > - Event callback handlers > > -
2006 Feb 23
4
MySQL Duplicate Key Error
I am a newbie and I am running into a problem which I cant understand. I have a table called ''privileges'' which has the following fields CREATE TABLE `sdqualplanner`.`privileges` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(20) NOT NULL default '''', `description` varchar(100) NOT NULL default '''', `section_id`