MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / LBackend_TableUpdate

Function LBackend_TableUpdate

src/LBackend_Android.c:483–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void LBackend_TableUpdate(struct LTable* w) {
484 JNIEnv* env; Java_GetCurrentEnv(env);
485 jvalue args[3];
486 jmethodID method;
487
488 method = Java_GetIMethod(env, "tableStartUpdate", "()V");
489 Java_ICall_Void(env, method, args);
490 method = Java_GetIMethod(env, "tableAddEntry", "(Ljava/lang/String;Ljava/lang/String;Z)V");
491
492 for (int i = 0; i < w->rowsCount; i++)
493 {
494 struct ServerInfo* info = LTable_Get(i);
495 args[0].l = Java_AllocString(env, &info->name);
496 args[1].l = GetTableDetails(env, info);
497 args[2].z = info->featured;
498 Java_ICall_Void(env, method, args);
499
500 Java_DeleteLocalRef(env, args[0].l);
501 Java_DeleteLocalRef(env, args[1].l);
502 }
503
504 method = Java_GetIMethod(env, "tableFinishUpdate", "(I)V");
505 args[0].i = (int)w->meta;
506 Java_ICall_Void(env, method, args);
507}
508
509void LBackend_TableReposition(struct LTable* w) {
510

Callers 1

LBackend_TableShowFunction · 0.70

Calls 2

Java_AllocStringFunction · 0.85
GetTableDetailsFunction · 0.85

Tested by

no test coverage detected