Skip to content

Commit

Permalink
refactor: rename cli_items to client_items
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and arogge committed Mar 30, 2023
1 parent 0eec896 commit 282ffd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/dird/dird_conf.cc
Expand Up @@ -213,7 +213,7 @@ static ResourceItem user_items[] = {
{nullptr, 0, 0, nullptr, 0, 0, nullptr, nullptr, nullptr}
};

static ResourceItem cli_items[] = {
static ResourceItem client_items[] = {
{ "Name", CFG_TYPE_NAME, ITEM(res_client, resource_name_), 0, CFG_ITEM_REQUIRED, NULL, NULL,
"The name of the resource." },
{ "Description", CFG_TYPE_STR, ITEM(res_client, description_), 0, 0, NULL, NULL, NULL },
Expand Down Expand Up @@ -510,7 +510,7 @@ static ResourceItem counter_items[] = {
static ResourceTable resources[] = {
{ "Director", "Directors", dir_items, R_DIRECTOR, sizeof(DirectorResource),
[] (){ res_dir = new DirectorResource(); }, reinterpret_cast<BareosResource**>(&res_dir) },
{ "Client", "Clients", cli_items, R_CLIENT, sizeof(ClientResource),
{ "Client", "Clients", client_items, R_CLIENT, sizeof(ClientResource),
[] (){ res_client = new ClientResource(); }, reinterpret_cast<BareosResource**>(&res_client) },
{ "JobDefs", "JobDefs", job_items, R_JOBDEFS, sizeof(JobResource),
[] (){ res_job = new JobResource(); }, reinterpret_cast<BareosResource**>(&res_job) },
Expand Down
4 changes: 2 additions & 2 deletions core/src/qt-tray-monitor/tray_conf.cc
Expand Up @@ -115,7 +115,7 @@ static ResourceItem dir_items[] = {
*
* name handler value code flags default_value
*/
static ResourceItem cli_items[] = {
static ResourceItem client_items[] = {
{"Name", CFG_TYPE_NAME, ITEM(res_client,resource_name_), 0, CFG_ITEM_REQUIRED, NULL, NULL, NULL},
{"Description", CFG_TYPE_STR, ITEM(res_client,description_), 0, 0, NULL, NULL, NULL},
{"Address", CFG_TYPE_STR, ITEM(res_client,address), 0, CFG_ITEM_REQUIRED, NULL, NULL, NULL},
Expand Down Expand Up @@ -170,7 +170,7 @@ static ResourceTable resource_definitions[] = {
[]() { res_monitor = new MonitorResource(); }, reinterpret_cast<BareosResource**>(&res_monitor)},
{"Director", "Directors", dir_items, R_DIRECTOR, sizeof(DirectorResource),
[]() { res_dir = new DirectorResource(); }, reinterpret_cast<BareosResource**>(&res_dir)},
{"Client", "Clients", cli_items, R_CLIENT, sizeof(ClientResource),
{"Client", "Clients", client_items, R_CLIENT, sizeof(ClientResource),
[]() { res_client = new ClientResource(); }, reinterpret_cast<BareosResource**>(&res_client)},
{"Storage", "Storages", store_items, R_STORAGE, sizeof(StorageResource),
[]() { res_store = new StorageResource(); }, reinterpret_cast<BareosResource**>(&res_store)},
Expand Down

0 comments on commit 282ffd1

Please sign in to comment.