diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:27:52 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:27:52 +0100 |
commit | 24bee20ce4196d45891925332a47a05aa5e40938 (patch) | |
tree | 434b56343dde38ae0c877cab236ada753e2f8549 /java/com_redhat_et_libguestfs_GuestFS.c | |
parent | 8c60f5c681b5d7cf90bc798fcaf94cd4e242e27f (diff) | |
download | libguestfs-24bee20ce4196d45891925332a47a05aa5e40938.tar.gz libguestfs-24bee20ce4196d45891925332a47a05aa5e40938.tar.xz libguestfs-24bee20ce4196d45891925332a47a05aa5e40938.zip |
Generated code for dmesg command.
Diffstat (limited to 'java/com_redhat_et_libguestfs_GuestFS.c')
-rw-r--r-- | java/com_redhat_et_libguestfs_GuestFS.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/java/com_redhat_et_libguestfs_GuestFS.c b/java/com_redhat_et_libguestfs_GuestFS.c index ae6ff863..323402d8 100644 --- a/java/com_redhat_et_libguestfs_GuestFS.c +++ b/java/com_redhat_et_libguestfs_GuestFS.c @@ -2533,3 +2533,21 @@ Java_com_redhat_et_libguestfs_GuestFS__1drop_1caches } } +JNIEXPORT jstring JNICALL +Java_com_redhat_et_libguestfs_GuestFS__1dmesg + (JNIEnv *env, jobject obj, jlong jg) +{ + guestfs_h *g = (guestfs_h *) (long) jg; + jstring jr; + char *r; + + r = guestfs_dmesg (g); + if (r == NULL) { + throw_exception (env, guestfs_last_error (g)); + return NULL; + } + jr = (*env)->NewStringUTF (env, r); + free (r); + return jr; +} + |