Apply code review feedback to client refactor
- Rename phase_time to step_time for consistency with Step enum - Unify blob_size and file_size into single blob_size field - Merge toastyfs_alloc into toastyfs_init, returning malloced ToastyFS* - Replace (MessageHeader*)&msg casts with &msg.base - Replace !resp.size with explicit resp.size == 0 https://claude.ai/code/session_018MRQTdAZoBCXJZgdP4U6V6
This commit is contained in:
+1
-2
@@ -24,8 +24,7 @@ typedef struct {
|
||||
|
||||
typedef struct ToastyFS ToastyFS;
|
||||
|
||||
ToastyFS *toastyfs_alloc(void);
|
||||
int toastyfs_init(ToastyFS *tfs, uint64_t client_id, char **addrs, int num_addrs);
|
||||
ToastyFS *toastyfs_init(uint64_t client_id, char **addrs, int num_addrs);
|
||||
void toastyfs_free(ToastyFS *tfs);
|
||||
|
||||
void toastyfs_process_events(ToastyFS *tfs, void **ctxs, struct pollfd *pdata, int pnum);
|
||||
|
||||
Reference in New Issue
Block a user