aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-05-17 14:39:51 +0200
committerlaforge <laforge@osmocom.org>2022-05-19 19:34:41 +0000
commit53e2e5fe708293f9ac8f3b1cb69e62261d90accb (patch)
treedc22a73c073c4b3d5984463a4774d2dfd26967ad /include
parent03e8583a43914be77e139754283fb248bce9b0dd (diff)
sms_queue: Make deletion of messages from DB VTY-configurable
This introduces some VTY settings that determine if delivered or expired messages should be removed from he SQL database or not. Change-Id: Id6174875d5c01c40d987077651b27ae1acbcaa93
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/sms_queue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/msc/sms_queue.h b/include/osmocom/msc/sms_queue.h
index 76f885bf6..ccc56ab74 100644
--- a/include/osmocom/msc/sms_queue.h
+++ b/include/osmocom/msc/sms_queue.h
@@ -1,6 +1,8 @@
#ifndef SMS_QUEUE_H
#define SMS_QUEUE_H
+#include <stdbool.h>
+
struct gsm_network;
struct gsm_sms_queue;
struct vty;
@@ -9,6 +11,8 @@ struct sms_queue_config {
char *db_file_path; /* SMS database file path */
int max_fail; /* maximum number of delivery failures */
int max_pending; /* maximum number of gsm_sms_pending in RAM */
+ bool delete_delivered; /* delete delivered SMS from DB? */
+ bool delete_expired; /* delete expired SMS from DB? */
};
struct sms_queue_config *sms_queue_cfg_alloc(void *ctx);