You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MangoHud/src/app/mangoapp.h

28 lines
765 B
C

#include <stdint.h>
#include <sys/ipc.h>
#include <sys/msg.h>
extern struct mangoapp_ctrl_msg_v1 mangoapp_ctrl;
extern int ctrl_msgid;
extern int msgid;
extern bool mangoapp_paused;
struct mangoapp_msg_header {
long msg_type; // Message queue ID, never change
uint32_t version; /* for major changes in the way things work */
} __attribute__((packed));
struct mangoapp_msg_v1 {
struct mangoapp_msg_header hdr;
uint32_t pid;
uint64_t frametime_ns;
// WARNING: Always ADD fields, never remove or repurpose fields
} __attribute__((packed));
struct mangoapp_ctrl_msg_v1 {
struct mangoapp_msg_header hdr;
uint8_t ready_for_updates;
// WARNING: Always ADD fields, never remove or re-purpose fields
} __attribute__((packed));