Skip to content

Commit e132ecc

Browse files
committed
Major rework to support Linux's in-box USB/IP implementation. It still works best on Windows, but interrupt devices seem to do fine on Linux
1 parent 449733d commit e132ecc

25 files changed

+463
-150
lines changed

jni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include $(call all-subdir-makefiles)

jni/Application.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Application.mk for USB/IP Server
2+
3+
# Our minimum version is Android 3.1
4+
APP_PLATFORM := android-12
5+
6+
# Build for all ABIs
7+
APP_ABI := all
8+
9+
# We want an optimized build
10+
APP_OPTIM := release

jni/errno/Android.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Android.mk for errno
2+
MY_LOCAL_PATH := $(call my-dir)
3+
4+
include $(call all-subdir-makefiles)
5+
6+
LOCAL_PATH := $(MY_LOCAL_PATH)
7+
8+
include $(CLEAR_VARS)
9+
LOCAL_MODULE := errno
10+
LOCAL_SRC_FILES := errno_jni.c
11+
12+
include $(BUILD_SHARED_LIBRARY)

jni/errno/errno_jni.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <stdlib.h>
2+
#include <jni.h>
3+
4+
#include <errno.h>
5+
6+
JNIEXPORT jint JNICALL
7+
Java_org_cgutman_usbip_errno_Errno_getErrno(
8+
JNIEnv *env, jobject this)
9+
{
10+
return errno;
11+
}

libs/arm64-v8a/liberrno.so

5.24 KB
Binary file not shown.

libs/armeabi-v7a/liberrno.so

13.2 KB
Binary file not shown.

libs/armeabi/liberrno.so

13.2 KB
Binary file not shown.

libs/mips/liberrno.so

5.13 KB
Binary file not shown.

libs/mips64/liberrno.so

5.57 KB
Binary file not shown.

libs/x86/liberrno.so

5.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)