Skip to content

Commit

Permalink
Skip cmdprivate components in GIR
Browse files Browse the repository at this point in the history
Both of these were inadvertently being included in the GIR. The
OstreeCmdPrivateVTable declaration ended up causing a g-ir-compiler
error because I wanted to add a function that had a return type that was
marked as skipped (OstreeRepoAutoLock). The ostree_cmd__private__
documentation just had the wrong name.
  • Loading branch information
dbnicholson committed Oct 19, 2017
1 parent 93a16d0 commit 266f3f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libostree/ostree-cmdprivate.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl_ostree_generate_grub2_config (OstreeSysroot *sysroot, int bootversion, int
}

/**
* ostree_cmdprivate: (skip)
* ostree_cmd__private__: (skip)
*
* Do not call this function; it is used to share private API between
* the OSTree commandline and the library.
Expand Down
6 changes: 6 additions & 0 deletions src/libostree/ostree-cmdprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ G_BEGIN_DECLS

gboolean _ostree_impl_system_generator (const char *ostree_cmdline, const char *normal_dir, const char *early_dir, const char *late_dir, GError **error);

/**
* OstreeCmdPrivateVTable: (skip)
*
* Function table to share private API between the OSTree commandline and the
* library. Don't use this.
*/
typedef struct {
gboolean (* ostree_system_generator) (const char *ostree_cmdline, const char *normal_dir, const char *early_dir, const char *late_dir, GError **error);
gboolean (* ostree_generate_grub2_config) (OstreeSysroot *sysroot, int bootversion, int target_fd, GCancellable *cancellable, GError **error);
Expand Down

0 comments on commit 266f3f9

Please sign in to comment.