113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
+
-
+
|
}
return("unknown");
}
static struct appfs_package *appfs_getindex(const char *hostname, int *package_count_p) {
Tcl_Obj *objv[2];
Tcl_Obj *packages_tcl;
int tcl_ret;
if (package_count_p == NULL) {
return(NULL);
}
objv[0] = Tcl_NewStringObj("::appfs::getindex", -1);
objv[1] = Tcl_NewStringObj(hostname, -1);
tcl_ret = Tcl_EvalObjv(interp, 2, &objv, 0);
if (tcl_ret != TCL_OK) {
APPFS_DEBUG("Call to ::appfs::getindex failed: %s", Tcl_GetStringResult(interp));
return(NULL);
}
printf("result: %s\n", Tcl_GetStringResult(interp));
packages_tcl = Tcl_GetObjResult(interp);
return(NULL);
}
static int appfs_getfile(const char *hostname, const char *sha1) {
}
|