LCOV - code coverage report
Current view: top level - src/libvalent/core - valent-object.h (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 1 1
Test Date: 2024-05-05 22:34:11 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 66.7 % 6 4

             Branch data     Line data    Source code
       1                 :             : // SPDX-License-Identifier: GPL-3.0-or-later
       2                 :             : // SPDX-FileCopyrightText: 2014-2019 Christian Hergert <chergert@redhat.com>
       3                 :             : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
       4                 :             : 
       5                 :             : #pragma once
       6                 :             : 
       7                 :             : #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION)
       8                 :             : # error "Only <valent.h> can be included directly."
       9                 :             : #endif
      10                 :             : 
      11                 :             : #include <gio/gio.h>
      12                 :             : 
      13                 :             : #include "valent-version.h"
      14                 :             : 
      15                 :             : G_BEGIN_DECLS
      16                 :             : 
      17                 :             : #define VALENT_TYPE_OBJECT (valent_object_get_type())
      18                 :             : 
      19                 :             : VALENT_AVAILABLE_IN_1_0
      20   [ +  -  +  -  :       32464 : G_DECLARE_DERIVABLE_TYPE (ValentObject, valent_object, VALENT, OBJECT, GObject)
                   +  + ]
      21                 :             : 
      22                 :             : struct _ValentObjectClass
      23                 :             : {
      24                 :             :   GObjectClass   parent_class;
      25                 :             : 
      26                 :             :   /* signals */
      27                 :             :   void           (*destroy)     (ValentObject *object);
      28                 :             : 
      29                 :             :   /*< private >*/
      30                 :             :   gpointer       padding[8];
      31                 :             : };
      32                 :             : 
      33                 :             : VALENT_AVAILABLE_IN_1_0
      34                 :             : void           valent_object_lock              (ValentObject *object);
      35                 :             : VALENT_AVAILABLE_IN_1_0
      36                 :             : void           valent_object_unlock            (ValentObject *object);
      37                 :             : VALENT_AVAILABLE_IN_1_0
      38                 :             : GCancellable * valent_object_ref_cancellable   (ValentObject *object);
      39                 :             : VALENT_AVAILABLE_IN_1_0
      40                 :             : GCancellable * valent_object_chain_cancellable (ValentObject *object,
      41                 :             :                                                 GCancellable *cancellable);
      42                 :             : VALENT_AVAILABLE_IN_1_0
      43                 :             : void           valent_object_destroy           (ValentObject *object);
      44                 :             : VALENT_AVAILABLE_IN_1_0
      45                 :             : gboolean       valent_object_in_destruction    (ValentObject *object);
      46                 :             : VALENT_AVAILABLE_IN_1_0
      47                 :             : void           valent_object_notify            (ValentObject *object,
      48                 :             :                                                 const char   *property_name);
      49                 :             : VALENT_AVAILABLE_IN_1_0
      50                 :             : void           valent_object_notify_by_pspec   (ValentObject *object,
      51                 :             :                                                 GParamSpec   *pspec);
      52                 :             : 
      53                 :             : G_END_DECLS
      54                 :             : 
        

Generated by: LCOV version 2.0-1