LCOV - code coverage report
Current view: top level - src/libvalent/notifications - valent-notifications-adapter.h (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 1 1
Test Date: 2024-04-23 06:02:46 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 50.0 % 6 3

             Branch data     Line data    Source code
       1                 :             : // SPDX-License-Identifier: GPL-3.0-or-later
       2                 :             : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
       3                 :             : 
       4                 :             : #pragma once
       5                 :             : 
       6                 :             : #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION)
       7                 :             : # error "Only <valent.h> can be included directly."
       8                 :             : #endif
       9                 :             : 
      10                 :             : #include "../core/valent-extension.h"
      11                 :             : #include "valent-notification.h"
      12                 :             : 
      13                 :             : G_BEGIN_DECLS
      14                 :             : 
      15                 :             : #define VALENT_TYPE_NOTIFICATIONS_ADAPTER (valent_notifications_adapter_get_type())
      16                 :             : 
      17                 :             : VALENT_AVAILABLE_IN_1_0
      18   [ +  -  +  -  :          49 : G_DECLARE_DERIVABLE_TYPE (ValentNotificationsAdapter, valent_notifications_adapter, VALENT, NOTIFICATIONS_ADAPTER, ValentExtension)
                   +  - ]
      19                 :             : 
      20                 :             : struct _ValentNotificationsAdapterClass
      21                 :             : {
      22                 :             :   ValentExtensionClass   parent_class;
      23                 :             : 
      24                 :             :   /* virtual functions */
      25                 :             :   void                   (*add_notification)     (ValentNotificationsAdapter  *adapter,
      26                 :             :                                                   ValentNotification          *notification);
      27                 :             :   void                   (*remove_notification)  (ValentNotificationsAdapter  *adapter,
      28                 :             :                                                   const char                  *id);
      29                 :             : 
      30                 :             :   /* signals */
      31                 :             :   void                   (*notification_added)   (ValentNotificationsAdapter  *adapter,
      32                 :             :                                                   ValentNotification          *notification);
      33                 :             :   void                   (*notification_removed) (ValentNotificationsAdapter  *adapter,
      34                 :             :                                                   const char                  *id);
      35                 :             : 
      36                 :             :   /*< private >*/
      37                 :             :   gpointer               padding[8];
      38                 :             : };
      39                 :             : 
      40                 :             : VALENT_AVAILABLE_IN_1_0
      41                 :             : void       valent_notifications_adapter_notification_added   (ValentNotificationsAdapter  *adapter,
      42                 :             :                                                               ValentNotification          *notification);
      43                 :             : VALENT_AVAILABLE_IN_1_0
      44                 :             : void       valent_notifications_adapter_notification_removed (ValentNotificationsAdapter  *adapter,
      45                 :             :                                                               const char                  *id);
      46                 :             : VALENT_AVAILABLE_IN_1_0
      47                 :             : void       valent_notifications_adapter_add_notification     (ValentNotificationsAdapter  *adapter,
      48                 :             :                                                               ValentNotification          *notification);
      49                 :             : VALENT_AVAILABLE_IN_1_0
      50                 :             : void       valent_notifications_adapter_remove_notification  (ValentNotificationsAdapter  *adapter,
      51                 :             :                                                               const char                  *id);
      52                 :             : 
      53                 :             : G_END_DECLS
      54                 :             : 
        

Generated by: LCOV version 2.0-1