Skip to content

Commit

Permalink
fixup! WIP: read lockfile for RPM versions
Browse files Browse the repository at this point in the history
Rebase and make it compilable again
  • Loading branch information
r4f4 committed May 9, 2019
1 parent 1230849 commit cada2e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust/src/lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

use c_utf8::CUtf8Buf;
use serde_derive::{Deserialize, Serialize};
use serde_json;
use serde_yaml;
use std::collections::HashMap;
Expand All @@ -31,6 +32,7 @@ pub struct Lockfile {
serialized: CUtf8Buf
}

#[derive(PartialEq)]
enum InputFormat {
YAML,
JSON,
Expand Down Expand Up @@ -251,10 +253,11 @@ packages:

mod ffi {
use super::*;
use ffiutil::*;
use glib_sys;
use libc;

use crate::ffiutil::*;

#[no_mangle]
pub extern "C" fn ror_lockfile_new(
filename: *const libc::c_char,
Expand Down

0 comments on commit cada2e2

Please sign in to comment.