Skip to content

Instantly share code, notes, and snippets.

@streamer45
Last active December 26, 2015 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save streamer45/7154164 to your computer and use it in GitHub Desktop.
Save streamer45/7154164 to your computer and use it in GitHub Desktop.
codegen func and proto
[streamer45@archlinux gen]$ ./codegen ../../../lib/krad_transponder/ "" "info" ebml/func
int kr_adapter_info_to_ebml(char *out, kr_adapter_info *st, int max) {
if ((out == NULL) || (st == NULL) || (max < 1)) {
return -1;
}
/* FIXME */
return 0;
}
int kr_adapter_path_info_to_ebml(char *out, kr_adapter_path_info *st, int max) {
if ((out == NULL) || (st == NULL) || (max < 1)) {
return -1;
}
/* FIXME */
return 0;
}
[streamer45@archlinux gen]$ ./codegen ../../../lib/krad_transponder/ "" "info" json/proto
int kr_adapter_info_to_json(uint8_t *out, kr_adapter_info *st, int max);
int kr_adapter_path_info_to_json(uint8_t *out, kr_adapter_path_info *st, int max);
[streamer45@archlinux gen]$ ./codegen ../../../lib/krad_compositor/ "" "info" text/proto
int kr_sprite_info_to_text(uint8_t *out, kr_sprite_info *st, int max);
int kr_text_info_to_text(uint8_t *out, kr_text_info *st, int max);
int kr_vector_info_to_text(uint8_t *out, kr_vector_info *st, int max);
int kr_compositor_path_info_to_text(uint8_t *out, kr_compositor_path_info *st, int max);
[streamer45@archlinux gen]$ ./codegen ../../../lib/krad_compositor/ "" "info" text/func
int kr_sprite_info_to_text(char *out, kr_sprite_info *st, int max) {
if ((out == NULL) || (st == NULL) || (max < 1)) {
return -1;
}
/* FIXME */
return 0;
}
int kr_text_info_to_text(char *out, kr_text_info *st, int max) {
if ((out == NULL) || (st == NULL) || (max < 1)) {
return -1;
}
/* FIXME */
return 0;
}
int kr_vector_info_to_text(char *out, kr_vector_info *st, int max) {
if ((out == NULL) || (st == NULL) || (max < 1)) {
return -1;
}
/* FIXME */
return 0;
}
int kr_compositor_path_info_to_text(char *out, kr_compositor_path_info *st, int max) {
if ((out == NULL) || (st == NULL) || (max < 1)) {
return -1;
}
/* FIXME */
return 0;
}
[streamer45@archlinux gen]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment