mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
daemon: rename 'state' to 'dstate' everywhere.
This is the daemon state, not the state machine state. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* You can allocate off this for temporary objects. */
|
||||
struct command {
|
||||
/* The global state */
|
||||
struct lightningd_state *state;
|
||||
struct lightningd_state *dstate;
|
||||
/* The 'id' which we need to include in the response. */
|
||||
const char *id;
|
||||
/* The connection, or NULL if it closed. */
|
||||
@@ -17,7 +17,7 @@ struct command {
|
||||
|
||||
struct json_connection {
|
||||
/* The global state */
|
||||
struct lightningd_state *state;
|
||||
struct lightningd_state *dstate;
|
||||
|
||||
/* Logging for this json connection. */
|
||||
struct log *log;
|
||||
@@ -53,7 +53,7 @@ void command_success(struct command *cmd, struct json_result *response);
|
||||
void PRINTF_FMT(2, 3) command_fail(struct command *cmd, const char *fmt, ...);
|
||||
|
||||
/* For initialization */
|
||||
void setup_jsonrpc(struct lightningd_state *state, const char *rpc_filename);
|
||||
void setup_jsonrpc(struct lightningd_state *dstate, const char *rpc_filename);
|
||||
|
||||
/* Commands (from other files) */
|
||||
extern const struct json_command connect_command;
|
||||
|
||||
Reference in New Issue
Block a user