Add new command /changes
With that command one can see the modifications of the runtime configuration vs. the saved configuration. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
@@ -2352,6 +2352,15 @@ static const struct cmd_t command_defs[] = {
|
||||
"/omemo char *")
|
||||
},
|
||||
|
||||
{ CMD_PREAMBLE("/changes",
|
||||
parse_args, 0, 0, NULL)
|
||||
CMD_MAINFUNC(cmd_changes)
|
||||
CMD_SYN(
|
||||
"/changes")
|
||||
CMD_DESC(
|
||||
"Show changes from saved configuration file.")
|
||||
},
|
||||
|
||||
{ CMD_PREAMBLE("/save",
|
||||
parse_args, 0, 0, NULL)
|
||||
CMD_MAINFUNC(cmd_save)
|
||||
|
||||
@@ -8948,6 +8948,14 @@ cmd_omemo_qrcode(ProfWin* window, const char* const command, gchar** args)
|
||||
#endif
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_changes(ProfWin* window, const char* const command, gchar** args)
|
||||
{
|
||||
cons_show("Show changes from saved configuration file.");
|
||||
prefs_changes();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_save(ProfWin* window, const char* const command, gchar** args)
|
||||
{
|
||||
|
||||
@@ -234,6 +234,7 @@ gboolean cmd_omemo_policy(ProfWin* window, const char* const command, gchar** ar
|
||||
gboolean cmd_omemo_clear_device_list(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_omemo_qrcode(ProfWin* window, const char* const command, gchar** args);
|
||||
|
||||
gboolean cmd_changes(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_save(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_reload(ProfWin* window, const char* const command, gchar** args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user