mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-30 10:38:36 +00:00
29 lines
593 B
C++
29 lines
593 B
C++
/*
|
|
* To generate colour-names.hh, you must have gperf installed during build.
|
|
* This is a dummy implementation for builds without gperf.
|
|
* Color name matching will always return null (i.e. no match).
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "logging.h"
|
|
|
|
struct rgb {
|
|
const char *name;
|
|
uint8_t red;
|
|
uint8_t green;
|
|
uint8_t blue;
|
|
};
|
|
|
|
class color_name_hash {
|
|
public:
|
|
static const struct rgb *in_word_set(const char *str, size_t len);
|
|
};
|
|
|
|
const struct rgb *color_name_hash::in_word_set(const char *str, size_t len) {
|
|
DBGP2("color parsing not supported");
|
|
return nullptr;
|
|
}
|