LCOV - code coverage report
Current view: top level - src/libvalent/media - valent-media-adapter.h (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 1 1
Test Date: 2024-04-16 07:28:14 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-media-player.h"
      12                 :             : 
      13                 :             : G_BEGIN_DECLS
      14                 :             : 
      15                 :             : #define VALENT_TYPE_MEDIA_ADAPTER (valent_media_adapter_get_type())
      16                 :             : 
      17                 :             : VALENT_AVAILABLE_IN_1_0
      18   [ +  -  +  -  :          88 : G_DECLARE_DERIVABLE_TYPE (ValentMediaAdapter, valent_media_adapter, VALENT, MEDIA_ADAPTER, ValentExtension)
                   +  - ]
      19                 :             : 
      20                 :             : struct _ValentMediaAdapterClass
      21                 :             : {
      22                 :             :   ValentExtensionClass   parent_class;
      23                 :             : 
      24                 :             :   /* virtual functions */
      25                 :             :   void                   (*export_player)   (ValentMediaAdapter *adapter,
      26                 :             :                                              ValentMediaPlayer  *player);
      27                 :             :   void                   (*unexport_player) (ValentMediaAdapter *adapter,
      28                 :             :                                              ValentMediaPlayer  *player);
      29                 :             : 
      30                 :             :   /*< private >*/
      31                 :             :   gpointer               padding[8];
      32                 :             : };
      33                 :             : 
      34                 :             : VALENT_AVAILABLE_IN_1_0
      35                 :             : void   valent_media_adapter_player_added    (ValentMediaAdapter *adapter,
      36                 :             :                                              ValentMediaPlayer  *player);
      37                 :             : VALENT_AVAILABLE_IN_1_0
      38                 :             : void   valent_media_adapter_player_removed  (ValentMediaAdapter *adapter,
      39                 :             :                                              ValentMediaPlayer  *player);
      40                 :             : VALENT_AVAILABLE_IN_1_0
      41                 :             : void   valent_media_adapter_export_player   (ValentMediaAdapter *adapter,
      42                 :             :                                              ValentMediaPlayer  *player);
      43                 :             : VALENT_AVAILABLE_IN_1_0
      44                 :             : void   valent_media_adapter_unexport_player (ValentMediaAdapter *adapter,
      45                 :             :                                              ValentMediaPlayer  *player);
      46                 :             : 
      47                 :             : G_END_DECLS
      48                 :             : 
        

Generated by: LCOV version 2.0-1