1.1 --- a/libexec/include/exec/external_pager.h Fri Feb 17 18:39:43 2023 +0100
1.2 +++ b/libexec/include/exec/external_pager.h Fri Feb 17 18:41:18 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A system pager implementation residing in a separate task.
1.6 *
1.7 - * Copyright (C) 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -23,6 +23,7 @@
1.13
1.14 #include <exec/pager.h>
1.15
1.16 +#include "notifier_interface.h"
1.17 #include "parent_pager_object_interface.h"
1.18
1.19
1.20 @@ -31,6 +32,9 @@
1.21
1.22 class ExternalPager : public ExecPager, public ParentPagerObject
1.23 {
1.24 +protected:
1.25 + Notifier *_notifier = NULL;
1.26 +
1.27 public:
1.28 explicit ExternalPager(address_t start = 0, address_t end = 0);
1.29
1.30 @@ -50,6 +54,11 @@
1.31 /* Parent methods. */
1.32
1.33 virtual long signal(unsigned long sig, unsigned long val);
1.34 +
1.35 + /* Notification methods. */
1.36 +
1.37 + virtual void set_notifier(Notifier *notifier)
1.38 + { _notifier = notifier; }
1.39 };
1.40
1.41 /* vim: tabstop=2 expandtab shiftwidth=2