Skip to content

Commit

Permalink
Add: Add excerpt_size field to credentials_t
Browse files Browse the repository at this point in the history
The credentials struct now has a new field for the setting
"Note/Override Excerpt Size".

This allows gvmd to cache the setting so it does not have to query the
database for every reference to a note or override in a report.
  • Loading branch information
timopollmeier committed Jul 28, 2023
1 parent 34292f3 commit 19d347c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ typedef struct
///< Dynamic Severity setting of user.
/*@null@ */ gchar *role;
///< Role of user.
/*@null@ */ int excerpt_size;
///< Note/Override Excerpt Size setting of user.
} credentials_t;

void
Expand Down

0 comments on commit 19d347c

Please sign in to comment.