Last active
December 26, 2015 12:49
-
-
Save streamer45/7154164 to your computer and use it in GitHub Desktop.
codegen func and proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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