LCOV - code coverage report
Current view: top level - build directory/src/error - elektra_errors.c (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 0 135 0.0 %
Date: 2019-09-12 12:28:41 Functions: 0 18 0.0 %

          Line data    Source code
       1             : /*This is an auto-generated file generated by exporterrors_highlevel. Do not modify it.*/
       2             : 
       3             : #include <elektra/errors.h>
       4             : #include <kdbprivate.h>
       5             : #include <kdbhelper.h>
       6             : #include <kdberrors.h>
       7             : 
       8             : #if defined(__GNUC__)
       9             : #pragma GCC diagnostic push
      10             : #pragma GCC diagnostic ignored "-Wformat"
      11             : #endif
      12             : 
      13           0 : ElektraError * elektraErrorResourceError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      14             :         va_list arg;
      15           0 :         va_start (arg, description);
      16           0 :         char * descriptionText = elektraVFormat (description, arg);
      17           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_RESOURCE, descriptionText, module, file, line);
      18           0 :         elektraFree (descriptionText);
      19           0 :         va_end (arg);
      20           0 :         return error;
      21             : }
      22             : 
      23           0 : void elektraErrorAddResourceWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      24             :         va_list arg;
      25           0 :         va_start (arg, description);
      26           0 :         char * descriptionText = elektraVFormat (description, arg);
      27           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_RESOURCE, descriptionText, module, file, line);
      28           0 :         elektraFree (descriptionText);
      29           0 :         va_end (arg);
      30           0 :         elektraErrorAddWarning (error, warning);
      31           0 : }
      32             : 
      33           0 : ElektraError * elektraErrorOutOfMemoryError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      34             :         va_list arg;
      35           0 :         va_start (arg, description);
      36           0 :         char * descriptionText = elektraVFormat (description, arg);
      37           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_OUT_OF_MEMORY, descriptionText, module, file, line);
      38           0 :         elektraFree (descriptionText);
      39           0 :         va_end (arg);
      40           0 :         return error;
      41             : }
      42             : 
      43           0 : void elektraErrorAddOutOfMemoryWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      44             :         va_list arg;
      45           0 :         va_start (arg, description);
      46           0 :         char * descriptionText = elektraVFormat (description, arg);
      47           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_OUT_OF_MEMORY, descriptionText, module, file, line);
      48           0 :         elektraFree (descriptionText);
      49           0 :         va_end (arg);
      50           0 :         elektraErrorAddWarning (error, warning);
      51           0 : }
      52             : 
      53           0 : ElektraError * elektraErrorInstallationError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      54             :         va_list arg;
      55           0 :         va_start (arg, description);
      56           0 :         char * descriptionText = elektraVFormat (description, arg);
      57           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_INSTALLATION, descriptionText, module, file, line);
      58           0 :         elektraFree (descriptionText);
      59           0 :         va_end (arg);
      60           0 :         return error;
      61             : }
      62             : 
      63           0 : void elektraErrorAddInstallationWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      64             :         va_list arg;
      65           0 :         va_start (arg, description);
      66           0 :         char * descriptionText = elektraVFormat (description, arg);
      67           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_INSTALLATION, descriptionText, module, file, line);
      68           0 :         elektraFree (descriptionText);
      69           0 :         va_end (arg);
      70           0 :         elektraErrorAddWarning (error, warning);
      71           0 : }
      72             : 
      73           0 : ElektraError * elektraErrorInternalError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      74             :         va_list arg;
      75           0 :         va_start (arg, description);
      76           0 :         char * descriptionText = elektraVFormat (description, arg);
      77           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_INTERNAL, descriptionText, module, file, line);
      78           0 :         elektraFree (descriptionText);
      79           0 :         va_end (arg);
      80           0 :         return error;
      81             : }
      82             : 
      83           0 : void elektraErrorAddInternalWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      84             :         va_list arg;
      85           0 :         va_start (arg, description);
      86           0 :         char * descriptionText = elektraVFormat (description, arg);
      87           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_INTERNAL, descriptionText, module, file, line);
      88           0 :         elektraFree (descriptionText);
      89           0 :         va_end (arg);
      90           0 :         elektraErrorAddWarning (error, warning);
      91           0 : }
      92             : 
      93           0 : ElektraError * elektraErrorInterfaceError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
      94             :         va_list arg;
      95           0 :         va_start (arg, description);
      96           0 :         char * descriptionText = elektraVFormat (description, arg);
      97           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_INTERFACE, descriptionText, module, file, line);
      98           0 :         elektraFree (descriptionText);
      99           0 :         va_end (arg);
     100           0 :         return error;
     101             : }
     102             : 
     103           0 : void elektraErrorAddInterfaceWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     104             :         va_list arg;
     105           0 :         va_start (arg, description);
     106           0 :         char * descriptionText = elektraVFormat (description, arg);
     107           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_INTERFACE, descriptionText, module, file, line);
     108           0 :         elektraFree (descriptionText);
     109           0 :         va_end (arg);
     110           0 :         elektraErrorAddWarning (error, warning);
     111           0 : }
     112             : 
     113           0 : ElektraError * elektraErrorPluginMisbehaviorError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     114             :         va_list arg;
     115           0 :         va_start (arg, description);
     116           0 :         char * descriptionText = elektraVFormat (description, arg);
     117           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_PLUGIN_MISBEHAVIOR, descriptionText, module, file, line);
     118           0 :         elektraFree (descriptionText);
     119           0 :         va_end (arg);
     120           0 :         return error;
     121             : }
     122             : 
     123           0 : void elektraErrorAddPluginMisbehaviorWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     124             :         va_list arg;
     125           0 :         va_start (arg, description);
     126           0 :         char * descriptionText = elektraVFormat (description, arg);
     127           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_PLUGIN_MISBEHAVIOR, descriptionText, module, file, line);
     128           0 :         elektraFree (descriptionText);
     129           0 :         va_end (arg);
     130           0 :         elektraErrorAddWarning (error, warning);
     131           0 : }
     132             : 
     133           0 : ElektraError * elektraErrorConflictingStateError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     134             :         va_list arg;
     135           0 :         va_start (arg, description);
     136           0 :         char * descriptionText = elektraVFormat (description, arg);
     137           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_CONFLICTING_STATE, descriptionText, module, file, line);
     138           0 :         elektraFree (descriptionText);
     139           0 :         va_end (arg);
     140           0 :         return error;
     141             : }
     142             : 
     143           0 : void elektraErrorAddConflictingStateWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     144             :         va_list arg;
     145           0 :         va_start (arg, description);
     146           0 :         char * descriptionText = elektraVFormat (description, arg);
     147           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_CONFLICTING_STATE, descriptionText, module, file, line);
     148           0 :         elektraFree (descriptionText);
     149           0 :         va_end (arg);
     150           0 :         elektraErrorAddWarning (error, warning);
     151           0 : }
     152             : 
     153           0 : ElektraError * elektraErrorValidationSyntacticError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     154             :         va_list arg;
     155           0 :         va_start (arg, description);
     156           0 :         char * descriptionText = elektraVFormat (description, arg);
     157           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_VALIDATION_SYNTACTIC, descriptionText, module, file, line);
     158           0 :         elektraFree (descriptionText);
     159           0 :         va_end (arg);
     160           0 :         return error;
     161             : }
     162             : 
     163           0 : void elektraErrorAddValidationSyntacticWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     164             :         va_list arg;
     165           0 :         va_start (arg, description);
     166           0 :         char * descriptionText = elektraVFormat (description, arg);
     167           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_VALIDATION_SYNTACTIC, descriptionText, module, file, line);
     168           0 :         elektraFree (descriptionText);
     169           0 :         va_end (arg);
     170           0 :         elektraErrorAddWarning (error, warning);
     171           0 : }
     172             : 
     173           0 : ElektraError * elektraErrorValidationSemanticError (const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     174             :         va_list arg;
     175           0 :         va_start (arg, description);
     176           0 :         char * descriptionText = elektraVFormat (description, arg);
     177           0 :         ElektraError * error = elektraErrorCreate (ELEKTRA_ERROR_VALIDATION_SEMANTIC, descriptionText, module, file, line);
     178           0 :         elektraFree (descriptionText);
     179           0 :         va_end (arg);
     180           0 :         return error;
     181             : }
     182             : 
     183           0 : void elektraErrorAddValidationSemanticWarning (ElektraError * error, const char * module, const char * file, kdb_long_t line, const char * description, ...) {
     184             :         va_list arg;
     185           0 :         va_start (arg, description);
     186           0 :         char * descriptionText = elektraVFormat (description, arg);
     187           0 :         ElektraError * warning = elektraErrorCreate (ELEKTRA_ERROR_VALIDATION_SEMANTIC, descriptionText, module, file, line);
     188           0 :         elektraFree (descriptionText);
     189           0 :         va_end (arg);
     190           0 :         elektraErrorAddWarning (error, warning);
     191           0 : }
     192             : 
     193             : #if defined(__GNUC__)
     194             : #pragma GCC diagnostic pop
     195             : #endif
     196             : 

Generated by: LCOV version 1.13