mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Generated code for ping-daemon command.
This commit is contained in:
@@ -2536,4 +2536,25 @@ public class GuestFS {
|
||||
private native String _dmesg (long g)
|
||||
throws LibGuestFSException;
|
||||
|
||||
/**
|
||||
* ping the guest daemon
|
||||
*
|
||||
* This is a test probe into the guestfs daemon running
|
||||
* inside the qemu subprocess. Calling this function checks
|
||||
* that the daemon responds to the ping message, without
|
||||
* affecting the daemon or attached block device(s) in any
|
||||
* other way.
|
||||
*
|
||||
* @throws LibGuestFSException
|
||||
*/
|
||||
public void ping_daemon ()
|
||||
throws LibGuestFSException
|
||||
{
|
||||
if (g == 0)
|
||||
throw new LibGuestFSException ("ping_daemon: handle is closed");
|
||||
_ping_daemon (g);
|
||||
}
|
||||
private native void _ping_daemon (long g)
|
||||
throws LibGuestFSException;
|
||||
|
||||
}
|
||||
|
||||
@@ -2551,3 +2551,17 @@ Java_com_redhat_et_libguestfs_GuestFS__1dmesg
|
||||
return jr;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_redhat_et_libguestfs_GuestFS__1ping_1daemon
|
||||
(JNIEnv *env, jobject obj, jlong jg)
|
||||
{
|
||||
guestfs_h *g = (guestfs_h *) (long) jg;
|
||||
int r;
|
||||
|
||||
r = guestfs_ping_daemon (g);
|
||||
if (r == -1) {
|
||||
throw_exception (env, guestfs_last_error (g));
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user