NeoMutt  2020-04-24
Teaching an old dog new tricks
DOXYGEN
observer.h File Reference

Observer of notifications. More...

#include <stdbool.h>
#include "notify_type.h"
#include "queue.h"
+ Include dependency graph for observer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NotifyCallback
 Data passed to a notification function. More...
 
struct  Observer
 An observer of notifications. More...
 
struct  ObserverNode
 List of Observers. More...
 

Typedefs

typedef int(* observer_t) (struct NotifyCallback *nc)
 Prototype for a notification callback function. More...
 

Functions

 STAILQ_HEAD (ObserverList, ObserverNode)
 

Detailed Description

Observer of notifications.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file observer.h.

Typedef Documentation

◆ observer_t

typedef int(* observer_t) (struct NotifyCallback *nc)

Prototype for a notification callback function.

Parameters
[in]ncCallback data
Return values
0Success
-1Error

Definition at line 53 of file observer.h.

Function Documentation

◆ STAILQ_HEAD()

STAILQ_HEAD ( ObserverList  ,
ObserverNode   
)