X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fprocfile.h;h=98765697f59ea07dc735a4e6e7a1bdf44a31705c;hb=3869e7eb5d6bbf3d4b78d84e5b36f19a8968971f;hp=dae5a0fc272092deaea95dd565392ae77a9ee5b0;hpb=32fe91cb025e0f53e9430b4bf55d97f8c6f2a15d;p=netdata.git diff --git a/src/procfile.h b/src/procfile.h index dae5a0fc..98765697 100644 --- a/src/procfile.h +++ b/src/procfile.h @@ -58,6 +58,15 @@ typedef struct { #define PROCFILE_FLAG_DEFAULT 0x00000000 #define PROCFILE_FLAG_NO_ERROR_ON_FILE_IO 0x00000001 +typedef enum procfile_separator { + PF_CHAR_IS_SEPARATOR, + PF_CHAR_IS_NEWLINE, + PF_CHAR_IS_WORD, + PF_CHAR_IS_QUOTE, + PF_CHAR_IS_OPEN, + PF_CHAR_IS_CLOSE +} PF_CHAR_TYPE; + typedef struct { char filename[FILENAME_MAX + 1]; // not populated until profile_filename() is called @@ -67,7 +76,7 @@ typedef struct { size_t size; // the bytes we have allocated for data pflines *lines; pfwords *words; - char separators[256]; + PF_CHAR_TYPE separators[256]; char data[]; // allocated buffer to keep file contents } procfile;