Move mobile phone specific code from libcommon.a to libmobile.a

This commit is contained in:
Andreas Eversberg
2017-08-20 08:27:02 +02:00
parent 3c0bcce97b
commit cff7622f5c
22 changed files with 58 additions and 23 deletions

View File

@@ -90,6 +90,7 @@ void sms_deliver_report(nmt_t *nmt, uint8_t ref, int error, uint8_t cause)
printf("(got deliver report from SMS layer)\n");
}
extern void main_mobile();
int main(void)
{
@@ -97,6 +98,9 @@ int main(void)
int i;
int rc;
/* this is never called, it forces the linker to add mobile functions */
if (debuglevel == -1000) main_mobile();
debuglevel = DEBUG_DEBUG;
nmt = calloc(sizeof(*nmt), 1);