X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=natives%2Fclub_wpia_gigi_natives_SetUID.c;fp=natives%2Forg_cacert_gigi_natives_SetUID.c;h=c0034677b77b8316fe1df3cb210a27da359b8cbe;hp=1b2350b4ab856102906013b6fcf80dfe8b0e6da5;hb=bccd4cc0dba0f89aa045b113bac46eb8cc1dab4e;hpb=c9ed09f0007fc2c813815be927a5a24b23dab83c diff --git a/natives/org_cacert_gigi_natives_SetUID.c b/natives/club_wpia_gigi_natives_SetUID.c similarity index 87% rename from natives/org_cacert_gigi_natives_SetUID.c rename to natives/club_wpia_gigi_natives_SetUID.c index 1b2350b4..c0034677 100644 --- a/natives/org_cacert_gigi_natives_SetUID.c +++ b/natives/club_wpia_gigi_natives_SetUID.c @@ -3,8 +3,8 @@ #include -#ifndef _Included_org_cacert_natives_SetUID -#define _Included_org_cacert_natives_SetUID +#ifndef _Included_club_wpia_natives_SetUID +#define _Included_club_wpia_natives_SetUID #ifdef __cplusplus extern "C" { #endif @@ -12,12 +12,12 @@ extern "C" { static jobject getStatus(JNIEnv *env, int successCode, const char * message) { jstring message_str = (*env)->NewStringUTF(env, message); jboolean success = successCode; - jclass cls = (*env)->FindClass(env, "Lorg/cacert/gigi/natives/SetUID$Status;"); + jclass cls = (*env)->FindClass(env, "Lclub/wpia/gigi/natives/SetUID$Status;"); jmethodID constructor = (*env)->GetMethodID(env, cls, "", "(ZLjava/lang/String;)V"); return (*env)->NewObject(env, cls, constructor, success, message_str); } -JNIEXPORT jobject JNICALL Java_org_cacert_gigi_natives_SetUID_setUid +JNIEXPORT jobject JNICALL Java_club_wpia_gigi_natives_SetUID_setUid (JNIEnv *env, jobject obj, jint uid_, jint gid_) { /* We don't need the reference for the object/class we are working on */