mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Merge "pjproject cli: Add object count after object lists" into 13
This commit is contained in:
@@ -221,6 +221,8 @@ char *ast_sip_cli_traverse_objects(struct ast_cli_entry *e, int cmd, struct ast_
|
|||||||
return CLI_SUCCESS;
|
return CLI_SUCCESS;
|
||||||
}
|
}
|
||||||
ao2_callback(container, OBJ_NODATA, formatter_entry->print_body, &context);
|
ao2_callback(container, OBJ_NODATA, formatter_entry->print_body, &context);
|
||||||
|
ast_str_append(&context.output_buffer, 0, "\nObjects found: %d\n", ao2_container_count(container));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (ast_strlen_zero(object_id)) {
|
if (ast_strlen_zero(object_id)) {
|
||||||
ast_free(context.output_buffer);
|
ast_free(context.output_buffer);
|
||||||
|
Reference in New Issue
Block a user