Lines Matching refs:state
36 static std::vector<std::string> ReadStringArgs(const char* name, State* state, in ReadStringArgs() argument
40 ErrorAbort(state, kArgsParsingFailure, "%s expects %zu arguments, got %zu", name, in ReadStringArgs()
46 if (!ReadValueArgs(state, argv, &args)) { in ReadStringArgs()
54 ErrorAbort(state, kArgsParsingFailure, "%s argument to %s must be string", in ReadStringArgs()
66 Value* UnmapPartitionFn(const char* name, State* state, in UnmapPartitionFn() argument
68 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn()
71 auto updater_runtime = state->updater->GetRuntime(); in UnmapPartitionFn()
76 Value* MapPartitionFn(const char* name, State* state, in MapPartitionFn() argument
78 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn()
82 auto updater_runtime = state->updater->GetRuntime(); in MapPartitionFn()
89 Value* UpdateDynamicPartitionsFn(const char* name, State* state, in UpdateDynamicPartitionsFn() argument
92 ErrorAbort(state, kArgsParsingFailure, "%s expects 1 arguments, got %zu", name, argv.size()); in UpdateDynamicPartitionsFn()
96 if (!ReadValueArgs(state, argv, &args)) { in UpdateDynamicPartitionsFn()
101 ErrorAbort(state, kArgsParsingFailure, "op_list argument to %s must be blob", name); in UpdateDynamicPartitionsFn()
106 if (state->is_retry) { in UpdateDynamicPartitionsFn()
123 auto updater_runtime = state->updater->GetRuntime(); in UpdateDynamicPartitionsFn()