Diff

Differences From Artifact [3c07efd857]:

To Artifact [c11522a03a]:


91
92
93
94
95
96
97






98
99
100
101
102
103
104
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110







+
+
+
+
+
+







		struct {
			int executable;
			off_t size;
			char sha1[41];
		} file;
	} typeinfo;
};

struct appfs_sqlite3_query_cb_handle {
	struct appfs_children *head;
	int argc;
	const char *fmt;
};

static appfs_os_t appfs_convert_os_fromString(const char *os) {
	if (strcasecmp(os, "Linux") == 0) {
		return(APPFS_OS_LINUX);
	}

	if (strcasecmp(os, "Darwin") == 0 || strcasecmp(os, "Mac OS") == 0 || strcasecmp(os, "Mac OS X") == 0) {
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
392
393
394
395
396
397
398






399
400
401
402
403
404
405







-
-
-
-
-
-







	if (head != NULL) {
		*children_count_p = head->counter + 1;
	}

	return(head);
}

struct appfs_sqlite3_query_cb_handle {
	struct appfs_children *head;
	int argc;
	const char *fmt;
};

static int appfs_sqlite3_query_cb(void *_cb_handle, int columns, char **values, char **names) {
	struct appfs_sqlite3_query_cb_handle *cb_handle;
	struct appfs_children *obj;

	cb_handle = _cb_handle;

	obj = (void *) ckalloc(sizeof(*obj));