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-07-31 00:13:03 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-02 09:51
      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 "module.h"
      18             : #include "mkmod.h"
      19             : #include "gettext.h"
      20             : #define _(String) gettext (String)
      21             : 
      22             : #include <stdio.h>
      23             : 
      24             : #include "debug/assert.h"
      25             : #include "debug/memory.h"
      26             : 
      27             : /* List exposed module functions */static void mkmod_function();
      28             : mkmod_api_t module_api = {
      29             :     mkmod_function
      30             : };
      31             : 
      32             : static moduleinfo_t moduleinfo = {
      33             :     "MyModule",
      34             :     "MyModule description",
      35             :     0,
      36             :     1,
      37             :     0,
      38             :     "First and Lastname",
      39             :     "email@address.tld",
      40             :     "http://www.mymodule.com",
      41             :     "GPLv3"
      42             : };
      43             : 
      44           7 : moduleinfo_t* onLoad ()
      45             : {
      46           7 :     DBG_TRACE;
      47           7 :     return &moduleinfo;
      48             : }
      49             : 
      50           7 : uint8_t onUnload()
      51             : {
      52           7 :     DBG_TRACE;
      53           7 :     return 0;
      54             : }
      55             : 
      56           9 : static void mkmod_function()
      57             : {
      58           9 :     DBG_TRACE;
      59             : 
      60           9 :     printf(_("Hello from mkmod_function\n"));
      61           9 : }
      62             : 

Generated by: LCOV version 1.16