/* This file is part of lliurex-gva-hwdb Copyright (C) 2021 Enrique Medina Gremaldos This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef LLIUREX_GVA_HWDB #define LLIUREX_GVA_HWDB #include "hwdb.h" #include #define LLX_GVA_HWDB_MAX_BUFFER 256 /*! * returns system vendor name or empty string if name can not be retrieved * dont free the pointer */ char* llx_gva_hwdb_get_vendor(); /*! * returns system name or empty string if name can not be retrieved * dont free the pointer */ char* llx_gva_hwdb_get_system(); /*! * returns guessed system or empty string if error * dont free the pointer */ char* llx_gva_hwdb_what(); /*! * returns entry db to guessed system or null if fails to guess it * dont free the pointer. L1 distance of levenshtein from system/vendor is returned on distance argument */ llx_gva_hwdb_t* llx_gva_hwdb_what_db(int* distance); void test(); #endif