MCPcopy Create free account
hub / github.com/apache/trafficserver / TSMgmtIntCreate

Function TSMgmtIntCreate

src/api/InkAPI.cc:7747–7761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7745}
7746
7747TSReturnCode
7748TSMgmtIntCreate(TSRecordType rec_type, const char *name, TSMgmtInt data_default, TSRecordUpdateType update_type,
7749 TSRecordCheckType check_type, const char *check_regex, TSRecordAccessType access_type)
7750{
7751 if (check_regex == nullptr && check_type != TS_RECORDCHECK_NULL) {
7752 return TS_ERROR;
7753 }
7754 if (REC_ERR_OKAY != RecRegisterConfigInt(static_cast<enum RecT>(rec_type), name, static_cast<RecInt>(data_default),
7755 static_cast<enum RecUpdateT>(update_type), static_cast<enum RecCheckT>(check_type),
7756 check_regex, REC_SOURCE_PLUGIN, static_cast<enum RecAccessT>(access_type))) {
7757 return TS_ERROR;
7758 }
7759
7760 return TS_SUCCESS;
7761}
7762
7763TSReturnCode
7764TSHttpTxnCloseAfterResponse(TSHttpTxn txnp, int should_close)

Callers 1

create_lua_vmsFunction · 0.85

Calls 1

RecRegisterConfigIntFunction · 0.85

Tested by

no test coverage detected