LCOV - code coverage report
Current view: top level - libmalcontent-timer - time-span.h (source / functions) Coverage Total Hit
Test: 2 coverage DB files Lines: 0.0 % 1 0
Test Date: 2025-04-24 23:46:12 Functions: 0.0 % 2 0
Branches: 0.0 % 2 0

             Branch data     Line data    Source code
       1                 :             : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
       2                 :             :  *
       3                 :             :  * Copyright 2024 GNOME Foundation, Inc.
       4                 :             :  *
       5                 :             :  * SPDX-License-Identifier: LGPL-2.1-or-later
       6                 :             :  *
       7                 :             :  * This library is free software; you can redistribute it and/or
       8                 :             :  * modify it under the terms of the GNU Lesser General Public
       9                 :             :  * License as published by the Free Software Foundation; either
      10                 :             :  * version 2.1 of the License, or (at your option) any later version.
      11                 :             :  *
      12                 :             :  * This library is distributed in the hope that it will be useful,
      13                 :             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14                 :             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15                 :             :  * Lesser General Public License for more details.
      16                 :             :  *
      17                 :             :  * You should have received a copy of the GNU Lesser General Public
      18                 :             :  * License along with this library; if not, write to the Free Software
      19                 :             :  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
      20                 :             :  *
      21                 :             :  * Authors:
      22                 :             :  *  - Philip Withnall <pwithnall@gnome.org>
      23                 :             :  */
      24                 :             : 
      25                 :             : #pragma once
      26                 :             : 
      27                 :             : #include <glib.h>
      28                 :             : #include <stdint.h>
      29                 :             : 
      30                 :             : G_BEGIN_DECLS
      31                 :             : 
      32                 :             : typedef struct _MctTimeSpan MctTimeSpan;
      33                 :             : 
      34                 :             : MctTimeSpan *mct_time_span_new (uint64_t start_time_secs,
      35                 :             :                                 uint64_t end_time_secs);
      36                 :             : 
      37                 :             : void mct_time_span_free (MctTimeSpan *self);
      38                 :             : 
      39         [ #  # ]:           0 : G_DEFINE_AUTOPTR_CLEANUP_FUNC (MctTimeSpan, mct_time_span_free)
      40                 :             : 
      41                 :             : MctTimeSpan *mct_time_span_copy (const MctTimeSpan *self);
      42                 :             : 
      43                 :             : int mct_time_span_compare (const MctTimeSpan *self,
      44                 :             :                            const MctTimeSpan *other);
      45                 :             : 
      46                 :             : uint64_t mct_time_span_get_start_time_secs (const MctTimeSpan *self);
      47                 :             : uint64_t mct_time_span_get_end_time_secs (const MctTimeSpan *self);
      48                 :             : 
      49                 :             : G_END_DECLS
        

Generated by: LCOV version 2.0-1