mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Minor prototype tweak.
This commit is contained in:
parent
5ddde84eaa
commit
137f775605
2 changed files with 6 additions and 4 deletions
|
@ -296,7 +296,7 @@ int send_to_inbox(snac *snac, const xs_str *inbox, const xs_dict *msg,
|
|||
}
|
||||
|
||||
|
||||
d_char *get_actor_inbox(snac *snac, const char *actor)
|
||||
xs_str *get_actor_inbox(snac *snac, const char *actor)
|
||||
/* gets an actor's inbox */
|
||||
{
|
||||
xs *data = NULL;
|
||||
|
@ -316,7 +316,8 @@ d_char *get_actor_inbox(snac *snac, const char *actor)
|
|||
}
|
||||
|
||||
|
||||
int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_size, int timeout)
|
||||
int send_to_actor(snac *snac, const char *actor, const char *msg,
|
||||
xs_val **payload, int *p_size, int timeout)
|
||||
/* sends a message to an actor */
|
||||
{
|
||||
int status = 400;
|
||||
|
|
5
snac.h
5
snac.h
|
@ -234,8 +234,9 @@ int send_to_inbox_raw(const char *keyid, const char *seckey,
|
|||
xs_val **payload, int *p_size, int timeout);
|
||||
int send_to_inbox(snac *snac, const xs_str *inbox, const xs_dict *msg,
|
||||
xs_val **payload, int *p_size, int timeout);
|
||||
d_char *get_actor_inbox(snac *snac, const char *actor);
|
||||
int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_size, int timeout);
|
||||
xs_str *get_actor_inbox(snac *snac, const char *actor);
|
||||
int send_to_actor(snac *snac, const char *actor, const char *msg,
|
||||
xs_val **payload, int *p_size, int timeout);
|
||||
int is_msg_public(snac *snac, const xs_dict *msg);
|
||||
int is_msg_for_me(snac *snac, const xs_dict *msg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue