LCOV - code coverage report
Current view: top level - src - mkmodtty.c (source / functions) Hit Total Coverage
Test: mkernel.info Lines: 10 10 100.0 %
Date: 2024-08-20 20:56:41 Functions: 3 3 100.0 %

          Line data    Source code
       1             : /**         @file  mkmodtty.c
       2             :  *         @brief
       3             :  *          @date  17/11/2017
       4             :  *        @author  François Cerbelle (Fanfan), francois@cerbelle.net
       5             :  *     @copyright  Copyright (c) 2017, François Cerbelle
       6             :  *
       7             :  *   @internal
       8             :  *       Compiler  gcc
       9             :  *  Last modified  2024-07-31 09:52
      10             :  *   Organization  Cerbelle.net
      11             :  *        Company  Home
      12             :  *
      13             :  *   This source code is released for free distribution under the terms of the
      14             :  *   GNU General Public License as published by the Free Software Foundation.
      15             :  */
      16             : 
      17             : #include "mkmod.h"
      18             : #include "gettext.h"
      19             : #define _(String) gettext (String)
      20             : 
      21             : #include <stdio.h>
      22             : 
      23             : #include "debug/assert.h"
      24             : #include "debug/memory.h"
      25             : 
      26             : /* List exposed module functions */static void mkmod_function();
      27             : mkmod_api_t module_api = {
      28             :     mkmod_function
      29             : };
      30             : 
      31             : static moduleinfo_t moduleinfo = {
      32             :     "MyModule",
      33             :     "MyModule description",
      34             :     0,
      35             :     1,
      36             :     0,
      37             :     "First and Lastname",
      38             :     "email@address.tld",
      39             :     "http://www.mymodule.com",
      40             :     "GPLv3"
      41             : };
      42             : 
      43           7 : moduleinfo_t* onLoad ()
      44             : {
      45           7 :     DBG_TRACE;
      46           7 :     return &moduleinfo;
      47             : }
      48             : 
      49           7 : uint8_t onUnload()
      50             : {
      51           7 :     DBG_TRACE;
      52           7 :     return 0;
      53             : }
      54             : 
      55           9 : static void mkmod_function()
      56             : {
      57           9 :     DBG_TRACE;
      58             : 
      59           9 :     printf(_("Hello from mkmod_function\n"));
      60           9 : }
      61             : 

Generated by: LCOV version 1.16