Browse Source

MT#55283 use enum ng_opmode

Change-Id: Ic511765a87faf53d9b8afd4a216bfcb1755f5c5e
pull/1897/head
Richard Fuchs 11 months ago
parent
commit
bd440dcdcb
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      daemon/control_ng.c
  2. +2
    -1
      include/cookie_cache.h

+ 2
- 2
daemon/control_ng.c View File

@ -72,7 +72,7 @@ const char *ng_command_strings_short[OP_COUNT] = {
typedef struct ng_ctx { typedef struct ng_ctx {
str callid; str callid;
int command;
enum ng_opmode command;
str cookie; str cookie;
bool should_trace; bool should_trace;
const endpoint_t *sin_ep; const endpoint_t *sin_ep;
@ -551,7 +551,7 @@ static bool should_trace_msg(enum ng_opmode command) {
} }
} }
static void homer_fill_values(ng_ctx *hctx, str *callid, int command) {
static void homer_fill_values(ng_ctx *hctx, str *callid, enum ng_opmode command) {
if (hctx) { if (hctx) {
hctx->command = command; hctx->command = command;
hctx->callid = *callid; hctx->callid = *callid;


+ 2
- 1
include/cookie_cache.h View File

@ -6,6 +6,7 @@
#include "helpers.h" #include "helpers.h"
#include "str.h" #include "str.h"
#include "control_ng.h"
struct cookie_cache_state { struct cookie_cache_state {
GHashTable *in_use; GHashTable *in_use;
@ -15,7 +16,7 @@ struct cookie_cache_state {
typedef struct cache_entry { typedef struct cache_entry {
str reply; str reply;
str callid; str callid;
int command;
enum ng_opmode command;
} cache_entry; } cache_entry;
INLINE cache_entry *cache_entry_dup(const cache_entry *s) { INLINE cache_entry *cache_entry_dup(const cache_entry *s) {


Loading…
Cancel
Save