mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
humanize: export schema arrays to include lengths
Due to windows compiler choking on it otherwise
This commit is contained in:
parent
f5ccdd1825
commit
7d8036b72e
1 changed files with 5 additions and 5 deletions
|
@ -637,19 +637,19 @@ typedef struct lws_humanize_unit {
|
|||
uint64_t factor;
|
||||
} lws_humanize_unit_t;
|
||||
|
||||
LWS_VISIBLE LWS_EXTERN const lws_humanize_unit_t humanize_schema_si[];
|
||||
LWS_VISIBLE LWS_EXTERN const lws_humanize_unit_t humanize_schema_si_bytes[];
|
||||
LWS_VISIBLE LWS_EXTERN const lws_humanize_unit_t humanize_schema_us[];
|
||||
LWS_VISIBLE LWS_EXTERN const lws_humanize_unit_t humanize_schema_si[7];
|
||||
LWS_VISIBLE LWS_EXTERN const lws_humanize_unit_t humanize_schema_si_bytes[7];
|
||||
LWS_VISIBLE LWS_EXTERN const lws_humanize_unit_t humanize_schema_us[8];
|
||||
|
||||
/**
|
||||
* lws_humanize() - Convert possibly large number to himan-readable uints
|
||||
* lws_humanize() - Convert possibly large number to human-readable uints
|
||||
*
|
||||
* \param buf: result string buffer
|
||||
* \param len: remaining length in \p buf
|
||||
* \param value: the uint64_t value to represent
|
||||
* \param schema: and array of scaling factors and units
|
||||
*
|
||||
* This produces a concise string representation of \p value, referening the
|
||||
* This produces a concise string representation of \p value, referencing the
|
||||
* schema \p schema of scaling factors and units to find the smallest way to
|
||||
* render it.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue