Now we're running enough code to respond (incorrectly) to http requests.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4207 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-03-09 00:32:42 +00:00
parent 63dcab30c3
commit bf72782c9f
4 changed files with 24 additions and 22 deletions

View File

@ -340,6 +340,7 @@ static int _tf_run_task(const tf_run_args_t* args, int index)
int result = -1;
tf_task_t* task = tf_task_create();
tf_task_set_trusted(task, true);
tf_printf("setting zip path to %s\n", args->zip);
tf_task_set_zip_path(task, args->zip);
tf_task_set_ssb_port(task, args->ssb_port ? args->ssb_port + index : 0);
tf_task_set_http_port(task, args->http_port ? args->http_port + index : 0);
@ -740,14 +741,16 @@ done:
static void _tf_android_thread(void* user_data)
{
char* args[] = { "tildefriends", "run" };
char* apk_path = user_data;
char* args[] = { "tildefriends", "run", "-z", apk_path };
main(_countof(args), args);
tf_free(apk_path);
}
void tf_android()
void tf_android(const char* apk_path)
{
uv_thread_t thread_id = 0;
tf_printf("TEST: Starting a thread.\n");
uv_thread_create(&thread_id, _tf_android_thread, NULL);
tf_printf("TEST: Post-thread start.\n");
tf_printf("Starting a thread.\n");
uv_thread_create(&thread_id, _tf_android_thread, tf_strdup(apk_path));
tf_printf("Post-thread start.\n");
}