summaryrefslogtreecommitdiff
path: root/infra/monitor/monitor_rpc.h
blob: 9945c5c5652752456f57db9a663db59e9d816c95 (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once
#include <stdint.h>
#include <stddef.h>
#include "stellar/monitor.h"
#include <bits/types/struct_iovec.h>

struct monitor_rpc;

typedef struct iovec(monitor_rpc_callabck)(int worker_thread_idx, struct iovec user_data, void *user_args);
struct iovec monitor_worker_thread_rpc(struct stellar_monitor *monitor, int worker_thread_idx, struct iovec user_data, monitor_rpc_callabck *cb, void *user_args);