Overview
Comment: | More rework |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ebf9995a423432fd2f2544b1f2180155 |
User & Date: | rkeene on 2014-09-08 03:18:13 |
Other Links: | manifest | tags |
Context
2014-09-08
| ||
04:25 | Working on creating an SQLite interface check-in: 676f99c72e user: rkeene tags: trunk | |
03:18 | More rework check-in: ebf9995a42 user: rkeene tags: trunk | |
02:55 | Removed warnings check-in: eed618f01c user: rkeene tags: trunk | |
Changes
Modified appfs.c from [09f9ed7337] to [4ce583b799].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | + + | #define FUSE_USE_VERSION 26 #include <string.h> #include <stdarg.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <fuse.h> #include <tcl.h> #define APPFS_CACHEDIR "/tmp/appfs-cache" #define APPFS_DEBUG(x...) { fprintf(stderr, "%i:%s: ", __LINE__, __func__); fprintf(stderr, x); fprintf(stderr, "\n"); } Tcl_Interp *interp; typedef enum { APPFS_OS_UNKNOWN, |
︙ | |||
159 160 161 162 163 164 165 | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | - + - + - + - + - - - - + + + + + | static int appfs_getfile(const char *hostname, const char *sha1) { } static int appfs_getmanifest(const char *hostname, const char *sha1) { } |
︙ | |||
234 235 236 237 238 239 240 241 242 243 244 245 246 247 | 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 | + + + + + + + | } tcl_ret = Tcl_Eval(interp, "" #include "appfs.tcl.h" ""); if (tcl_ret != TCL_OK) { fprintf(stderr, "Unable to initialize Tcl AppFS script. Aborting.\n"); fprintf(stderr, "Tcl Error is: %s\n", Tcl_GetStringResult(interp)); return(1); } if (Tcl_SetVar(interp, "::appfs::cachedir", cachedir, TCL_GLOBAL_ONLY) == NULL) { fprintf(stderr, "Unable to set cache directory. This should never fail.\n"); return(1); } tcl_ret = appfs_Tcl_Eval(interp, 1, "::appfs::init"); if (tcl_ret != TCL_OK) { fprintf(stderr, "Unable to initialize Tcl AppFS script (::appfs::init). Aborting.\n"); |
︙ |