move azbox code to libazbox directory

Origin commit data
------------------
Branch: master
Commit: bcc5c7ccdb
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-23 (Sun, 23 Dec 2018)

Origin message was:
------------------
- move azbox code to libazbox directory

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-12-23 22:33:56 +01:00
committed by max_10
parent f3dcd28bc8
commit 44123d7476
15 changed files with 7 additions and 7 deletions

23
libazbox/init.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <unistd.h>
#include "init_td.h"
#include "lt_debug.h"
#define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_INIT, NULL, args)
#define lt_info(args...) _lt_info(TRIPLE_DEBUG_INIT, NULL, args)
static bool initialized = false;
void init_td_api()
{
if (!initialized)
lt_debug_init();
lt_info("%s begin, initialized=%d, debug=0x%02x\n", __func__, (int)initialized, debuglevel);
initialized = true;
}
void shutdown_td_api()
{
lt_info("%s, initialized = %d\n", __func__, (int)initialized);
initialized = false;
}