diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/FileCowCopier.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/java/FileCowCopier.java b/src/java/FileCowCopier.java new file mode 100644 index 0000000..7295307 --- /dev/null +++ b/src/java/FileCowCopier.java @@ -0,0 +1,19 @@ +package com.keuin.kbackupfabric.util.cow; + + +public final class FileCowCopier { + + public static native void init(); + + public static native void copy(String dst, String src); + + public static native String getVersion(); + + public static void main(String[] args) { + System.loadLibrary("kbackup_cow"); + FileCowCopier.init(); + System.out.println("kbackup-cow version: " + FileCowCopier.getVersion()); + FileCowCopier.copy("b", "a"); + } + +} |