Files
gb28181/GB28181Device/sip/gb28181.h
2024-12-15 20:42:32 +08:00

70 lines
1.7 KiB
C

/***************************************************************************************
*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
* Copyright (C) 2014-2022, Happytimesoft Corporation, all rights reserved.
*
* Redistribution and use in binary forms, with or without modification, are permitted.
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
****************************************************************************************/
#ifndef GB28181_H
#define GB28181_H
#include "sys_inc.h"
#include "hqueue.h"
#include "hsip.h"
#include "sua.h"
#define GB_DEVICE_VERSION "V5.7"
#ifdef ANDROID
#define GB28181_LOG_FILE "/sdcard/gb28181device.log"
#else
#define GB28181_LOG_FILE "gb28181device.log"
#endif
typedef struct
{
uint32 task_running : 1;
uint32 reserved : 31;
HQUEUE * msg_queue;
pthread_t tid_task;
} GB28181_CLASS;
typedef struct
{
int evt;
uint32 index;
void * sua;
} GBMSG;
#ifdef __cplusplus
extern "C" {
#endif
BOOL gb28181_start1();
BOOL gb28181_start(const char * config);
void gb28181_stop();
void gb28181_time_update(const char * time_str);
void gb28181_put_msg(int evt, uint32 index, void * sua);
BOOL sip_audio_call_out(const char * p_local, const char * p_remote);
#ifdef __cplusplus
}
#endif
#endif