Skip to content

Commit

Permalink
add created_at to note
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Jan 24, 2024
1 parent 67fbb93 commit 1068246
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ impl<'a> Note<'a> {
unsafe { bindings::ndb_note_content_length(self.as_ptr()) as usize }
}

fn created_at(&self) -> u64 {
unsafe { bindings::ndb_note_created_at(self.as_ptr()).into() }
}

pub fn content_ptr(&self) -> *const ::std::os::raw::c_char {
unsafe { bindings::ndb_note_content(self.as_ptr()) }
}
Expand Down

0 comments on commit 1068246

Please sign in to comment.