File: setters.h

package info (click to toggle)
quasselc 0~git20170114-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 252 kB
  • sloc: ansic: 2,164; makefile: 68
file content (17 lines) | stat: -rw-r--r-- 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SETTERS_H
#define SETTERS_H

//char *convert_string(char *str, int *size);

int add_string(char *msg, const char *str);
int add_bytearray(char *msg, const char *str);
int add_int(char *msg, uint32_t v);
int add_short(char *msg, uint16_t v);
int add_qvariant(char *msg, int type);
int add_bufferinfo(char *buf, struct bufferinfo b);
int add_string_in_map(char *msg, char *key, char* value);
int add_bool_in_map(char *msg, char *key, int value);
int add_int_in_map(char *msg, char *key, int value);

void free_message(struct message*);
#endif