Sha256: 16dc51cccce0e10be91d5b7a8bfbc2b6029d41e25173b252223e1181b06c5e97

Contents?: true

Size: 518 Bytes

Versions: 15

Compression:

Stored size: 518 Bytes

Contents

#ifndef FILE_PARSING_H
#define FILE_PARSING_H
#include <file_reading.h>
#include <hashmap.h>

typedef struct {
    char *json;
    size_t json_size;
    char *name;
    size_t name_len;

    ID multiprocess_mode;
    ID type;
    VALUE pid;

    double value;
} entry_t;

void hashmap_setup(struct hashmap *map);

int process_buffer(file_t *file_info, buffer_t *source, struct hashmap *map);
int sort_map_entries(const struct hashmap *map, entry_t ***sorted_entries);

int is_pid_significant(const entry_t *e);

#endif

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
prometheus-client-mmap-0.10.0 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.10 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.9 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.8 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.7 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.6 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.5 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.4 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.3 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.2 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.1 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.1.pre.rc.2 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.1.pre.rc.1 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.0.pre.rc.1 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.9.0 ext/fast_mmaped_file/file_parsing.h