/bootable/recovery/edify/ |
D | expr.h | 57 typedef Value* (*Function)(const char* name, State* state, 71 Value* EvaluateValue(State* state, Expr* expr); 78 char* Evaluate(State* state, Expr* expr); 81 Value* Literal(const char* name, State* state, int argc, Expr* argv[]); 86 Value* ConcatFn(const char* name, State* state, int argc, Expr* argv[]); 87 Value* LogicalAndFn(const char* name, State* state, int argc, Expr* argv[]); 88 Value* LogicalOrFn(const char* name, State* state, int argc, Expr* argv[]); 89 Value* LogicalNotFn(const char* name, State* state, int argc, Expr* argv[]); 90 Value* SubstringFn(const char* name, State* state, int argc, Expr* argv[]); 91 Value* EqualityFn(const char* name, State* state, int argc, Expr* argv[]); [all …]
|
D | expr.c | 35 char* Evaluate(State* state, Expr* expr) { in Evaluate() argument 36 Value* v = expr->fn(expr->name, state, expr->argc, expr->argv); in Evaluate() 39 ErrorAbort(state, "expecting string, got value type %d", v->type); in Evaluate() 48 Value* EvaluateValue(State* state, Expr* expr) { in EvaluateValue() argument 49 return expr->fn(expr->name, state, expr->argc, expr->argv); in EvaluateValue() 67 Value* ConcatFn(const char* name, State* state, int argc, Expr* argv[]) { in ConcatFn() argument 79 strings[i] = Evaluate(state, argv[i]); in ConcatFn() 102 Value* IfElseFn(const char* name, State* state, int argc, Expr* argv[]) { in IfElseFn() argument 104 free(state->errmsg); in IfElseFn() 105 state->errmsg = strdup("ifelse expects 2 or 3 arguments"); in IfElseFn() [all …]
|
D | main.c | 43 State state; in expect() local 44 state.cookie = NULL; in expect() 45 state.script = strdup(expr_str); in expect() 46 state.errmsg = NULL; in expect() 48 result = Evaluate(&state, e); in expect() 49 free(state.errmsg); in expect() 50 free(state.script); in expect() 203 State state; in main() local 204 state.cookie = NULL; in main() 205 state.script = buffer; in main() [all …]
|
/bootable/recovery/updater/ |
D | install.c | 49 Value* MountFn(const char* name, State* state, int argc, Expr* argv[]) { in MountFn() argument 52 return ErrorAbort(state, "%s() expects 4 args, got %d", name, argc); in MountFn() 58 if (ReadArgs(state, argv, 4, &fs_type, &partition_type, in MountFn() 64 ErrorAbort(state, "fs_type argument to %s() can't be empty", name); in MountFn() 68 ErrorAbort(state, "partition_type argument to %s() can't be empty", in MountFn() 73 ErrorAbort(state, "location argument to %s() can't be empty", name); in MountFn() 77 ErrorAbort(state, "mount_point argument to %s() can't be empty", name); in MountFn() 133 Value* IsMountedFn(const char* name, State* state, int argc, Expr* argv[]) { in IsMountedFn() argument 136 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in IsMountedFn() 139 if (ReadArgs(state, argv, 1, &mount_point) < 0) { in IsMountedFn() [all …]
|
D | updater.c | 126 State state; in main() local 127 state.cookie = &updater_info; in main() 128 state.script = script; in main() 129 state.errmsg = NULL; in main() 131 char* result = Evaluate(&state, root); in main() 133 if (state.errmsg == NULL) { in main() 137 fprintf(stderr, "script aborted: %s\n", state.errmsg); in main() 138 char* line = strtok(state.errmsg, "\n"); in main() 145 free(state.errmsg); in main()
|
/bootable/recovery/minadbd/ |
D | fdevent.c | 74 fde->state & FDE_READ ? 'R' : ' ', in dump_fde() 75 fde->state & FDE_WRITE ? 'W' : ' ', in dump_fde() 76 fde->state & FDE_ERROR ? 'E' : ' ', in dump_fde() 163 active = (fde->state & FDE_EVENTMASK) != 0; in fdevent_update() 173 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update() 232 if(fde->state & FDE_PENDING) continue; in fdevent_process() 233 fde->state |= FDE_PENDING; in fdevent_process() 299 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update() 418 fde->fd, fde->events, fde->state); in fdevent_process() 419 if(fde->state & FDE_PENDING) continue; in fdevent_process() [all …]
|
D | transport_usb.c | 108 void init_usb_transport(atransport *t, usb_handle *h, int state) in init_usb_transport() argument 116 t->connection_state = state; in init_usb_transport()
|
D | fdevent.h | 75 unsigned short state; member
|
D | adb.h | 237 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char **error… 248 void init_usb_transport(atransport *t, usb_handle *usb, int state);
|
D | transport.c | 597 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char** error… in acquire_one_transport() argument 662 if (result && state != CS_ANY && result->connection_state != state) { in acquire_one_transport() 673 } else if (state != CS_ANY && (serial || !ambiguous)) { in acquire_one_transport()
|
D | sysdeps.h | 201 unsigned short state; member
|
/bootable/recovery/ |
D | NOTICE | 143 5. Submission of Contributions. Unless You explicitly state otherwise,
|