src/dbfs/fileop.c
branchnew-evsql
changeset 48 8b019d191353
parent 40 03017f5f0087
equal deleted inserted replaced
47:8c6c459eacb7 48:8b019d191353
    25     
    25     
    26     /* no-op */
    26     /* no-op */
    27     (void) fop;
    27     (void) fop;
    28 }
    28 }
    29 
    29 
    30 static void dbfs_open_res (const struct evsql_result_info *res, void *arg) {
    30 static void dbfs_open_res (struct evsql_result *res, void *arg) {
    31     struct dbfs_fileop *fop = arg;
    31     struct dbfs_fileop *fop = arg;
    32     int err;
    32     int err;
    33 
    33 
    34     // check the results
    34     // check the results
    35     if ((err = _dbfs_check_res(res, 1, 2)))
    35     if ((err = _dbfs_check_res(res, 1, 2)))
   131         if ((err = -fuse_reply_err(req, err)))
   131         if ((err = -fuse_reply_err(req, err)))
   132             EWARNING(err, "fuse_reply_err");
   132             EWARNING(err, "fuse_reply_err");
   133     }
   133     }
   134 }
   134 }
   135 
   135 
   136 void dbfs_read_res (const struct evsql_result_info *res, void *arg) {
   136 void dbfs_read_res (struct evsql_result *res, void *arg) {
   137     struct fuse_req *req = arg;
   137     struct fuse_req *req = arg;
   138     int err;
   138     int err;
   139     const char *buf;
   139     const char *buf;
   140     size_t size;
   140     size_t size;
   141  
   141  
   204 
   204 
   205 error:
   205 error:
   206     fuse_reply_err(req, err);
   206     fuse_reply_err(req, err);
   207 }
   207 }
   208 
   208 
   209 void dbfs_write_res (const struct evsql_result_info *res, void *arg) {
   209 void dbfs_write_res (struct evsql_result *res, void *arg) {
   210     struct fuse_req *req = arg;
   210     struct fuse_req *req = arg;
   211     int err;
   211     int err;
   212     uint32_t size;
   212     uint32_t size;
   213  
   213  
   214     // check the results
   214     // check the results