mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 12:32:05 +01:00
const
This commit is contained in:
@@ -10,7 +10,7 @@ int lua_set_rds_##name(lua_State *localL) { \
|
||||
}
|
||||
#define STR_NONRETURN_HANDLER(name, function) \
|
||||
int lua_set_rds_##name(lua_State *localL) { \
|
||||
const char* str = luaL_checklstring(localL, 1); \
|
||||
const char* str = luaL_checklstring(localL, 1, NULL); \
|
||||
function(mod->enc, str); \
|
||||
return 0; \
|
||||
}
|
||||
|
||||
@@ -836,7 +836,7 @@ inline void set_rds_ertplus_tags(RDSEncoder* enc, uint8_t *tags) {
|
||||
enc->rtpData[enc->program][1].enabled = 1;
|
||||
}
|
||||
|
||||
void set_rds_ptyn(RDSEncoder* enc, char *ptyn) {
|
||||
void set_rds_ptyn(RDSEncoder* enc, const char *ptyn) {
|
||||
uint8_t len = 0;
|
||||
|
||||
enc->state[enc->program].ptyn_update = 1;
|
||||
|
||||
@@ -246,6 +246,6 @@ void set_rds_lps(RDSEncoder* enc, char *lps);
|
||||
void set_rds_ert(RDSEncoder *enc, char *ert);
|
||||
void set_rds_rtplus_tags(RDSEncoder *enc, uint8_t *tags);
|
||||
void set_rds_ertplus_tags(RDSEncoder *enc, uint8_t *tags);
|
||||
void set_rds_ptyn(RDSEncoder *enc, char *ptyn);
|
||||
void set_rds_ptyn(RDSEncoder *enc, const char *ptyn);
|
||||
void set_rds_grpseq(RDSEncoder* enc, char *grpseq);
|
||||
void set_rds_grpseq2(RDSEncoder* enc, char *grpseq2);
|
||||
Reference in New Issue
Block a user