mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
add DcArray.getMarker()
This commit is contained in:
@@ -838,6 +838,18 @@ JNIEXPORT jint Java_com_b44t_messenger_DcArray_getLocationId(JNIEnv *env, jobjec
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT jstring Java_com_b44t_messenger_DcArray_getMarker(JNIEnv *env, jobject obj, jint index)
|
||||
{
|
||||
char* temp = dc_array_get_marker(get_dc_array(env, obj), index);
|
||||
jstring ret = NULL;
|
||||
if (temp) {
|
||||
ret = JSTRING_NEW(temp);
|
||||
}
|
||||
free(temp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* DcChatlist
|
||||
******************************************************************************/
|
||||
|
||||
@@ -19,6 +19,7 @@ public class DcArray {
|
||||
public native long getTimestamp (int index);
|
||||
public native int getMsgId (int index);
|
||||
public native int getLocationId(int index);
|
||||
public native String getMarker (int index);
|
||||
|
||||
// working with raw c-data
|
||||
private long arrayCPtr; // CAVE: the name is referenced in the JNI
|
||||
|
||||
Reference in New Issue
Block a user