Generated code for drop-caches command.
[libguestfs.git] / java / com_redhat_et_libguestfs_GuestFS.c
index 0f20d84..ae6ff86 100644 (file)
@@ -2517,3 +2517,19 @@ Java_com_redhat_et_libguestfs_GuestFS__1mv
   }
 }
 
+JNIEXPORT void JNICALL
+Java_com_redhat_et_libguestfs_GuestFS__1drop_1caches
+  (JNIEnv *env, jobject obj, jlong jg, jint jwhattodrop)
+{
+  guestfs_h *g = (guestfs_h *) (long) jg;
+  int r;
+  int whattodrop;
+
+  whattodrop = jwhattodrop;
+  r = guestfs_drop_caches (g, whattodrop);
+  if (r == -1) {
+    throw_exception (env, guestfs_last_error (g));
+    return ;
+  }
+}
+