Skip to content
Permalink
dfe84c7541
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
43 lines (29 sloc) 825 Bytes
#ifndef __MXQ_DAEMON_H__
#define __MXQ_DAEMON_H__ 1
#include <stdint.h>
#include <mysql.h>
#include "mx_mysql.h"
struct mxq_daemon {
uint32_t daemon_id;
char * daemon_name;
uint8_t status;
char * hostname;
char * mxq_version;
char * boot_id;
uint64_t pid_starttime;
uint32_t daemon_pid;
uint32_t daemon_slots;
uint64_t daemon_memory;
uint32_t daemon_time;
uint64_t daemon_memory_limit_slot_soft;
uint64_t daemon_memory_limit_slot_hard;
uint32_t daemon_jobs_running;
uint32_t daemon_slots_running;
uint32_t daemon_threads_running;
uint64_t daemon_memory_used;
struct timeval mtime;
struct timeval daemon_start;
struct timeval daemon_stop;
};
void mxq_daemon_free_content(struct mxq_daemon *daemon);
#endif