Ubus
OpenWrt system message/RPC bus.
ubus_common.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Macros

#define UBUS_SIGNATURE_METHOD   (BLOBMSG_TYPE_LAST + 1)
 
#define UBUS_SIGNATURE_END   (BLOBMSG_TYPE_LAST + 2)
 

Functions

static bool ubus_strmatch_len (const char *s1, const char *s2, int *len)
 

Macro Definition Documentation

◆ UBUS_SIGNATURE_END

#define UBUS_SIGNATURE_END   (BLOBMSG_TYPE_LAST + 2)

Definition at line 20 of file ubus_common.h.

◆ UBUS_SIGNATURE_METHOD

#define UBUS_SIGNATURE_METHOD   (BLOBMSG_TYPE_LAST + 1)

Definition at line 19 of file ubus_common.h.

Function Documentation

◆ ubus_strmatch_len()

static bool ubus_strmatch_len ( const char *  s1,
const char *  s2,
int *  len 
)
inlinestatic

Definition at line 22 of file ubus_common.h.

23 {
24  for (*len = 0; s1[*len] == s2[*len]; (*len)++)
25  if (!s1[*len])
26  return true;
27 
28  return false;
29 }
Here is the caller graph for this function: