fix: restore cur_name.h

This commit is contained in:
Alex Duan 2025-02-13 13:16:39 +08:00
parent 400254820c
commit 22ca66b25c
9 changed files with 50 additions and 32 deletions

View File

@ -31,6 +31,7 @@
extern "C" {
#endif
#include "cus_name.h"
#ifdef WINDOWS

42
include/util/cus_name.h Normal file
View File

@ -0,0 +1,42 @@
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CUS_NAME_H_
#define _CUS_NAME_H_
//
// support OEM
//
#ifndef TD_PRODUCT_NAME
#ifdef TD_ENTERPRISE
#define TD_PRODUCT_NAME "TDengine Enterprise Edition"
#else
#define TD_PRODUCT_NAME "TDengine Community Edition"
#endif
#endif
#ifndef CUS_NAME
#define CUS_NAME "TDengine"
#endif
#ifndef CUS_PROMPT
#define CUS_PROMPT "taos"
#endif
#ifndef CUS_EMAIL
#define CUS_EMAIL "<support@taosdata.com>"
#endif
#endif // _CUS_NAME_H_

View File

@ -17,6 +17,7 @@
#define _TD_UTIL_DEF_H_
#include "os.h"
#include "cur_name.h"
#ifdef __cplusplus
extern "C" {
@ -79,31 +80,6 @@ extern const int32_t TYPE_BYTES[21];
#define TSDB_DEFAULT_PASS "taosdata"
#endif
//
// support OEM
//
#ifndef TD_PRODUCT_NAME
#ifdef TD_ENTERPRISE
#define TD_PRODUCT_NAME "TDengine Enterprise Edition"
#else
#define TD_PRODUCT_NAME "TDengine Community Edition"
#endif
#endif
#ifndef CUS_NAME
#define CUS_NAME "TDengine"
#endif
#ifndef CUS_PROMPT
#define CUS_PROMPT "taos"
#endif
#ifndef CUS_EMAIL
#define CUS_EMAIL "<support@taosdata.com>"
#endif
#define TSDB_TRUE 1
#define TSDB_FALSE 0
#define TSDB_OK 0

View File

@ -39,9 +39,7 @@
#include "tconv.h"
#ifndef CUS_PROMPT
#define CUS_PROMPT "taos"
#endif
#include "cus_name.h"
#define TSC_VAR_NOT_RELEASE 1
#define TSC_VAR_RELEASED 0

View File

@ -27,7 +27,7 @@
#include "dmUtil.h"
#include "tcs.h"
#include "qworker.h"
#include "tdef.h"
#include "cus_name.h"
// clang-format off
#define DM_APOLLO_URL "The apollo string to use when configuring the server, such as: -a 'jsonFile:./tests/cfg.json', cfg.json text can be '{\"fqdn\":\"td1\"}'."

View File

@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include "taoserror.h"
#include "cus_name.h"
#define PROCESS_ITEM 12
#define UUIDLEN37 37

View File

@ -17,6 +17,7 @@
#include <pwd.h>
#endif
#include "cus_name.h"
#include "shellInt.h"
#include "version.h"

View File

@ -10,7 +10,7 @@
* FITNESS FOR A PARTICULAR PURPOSE.
*/
#include <tdef.h> // include/util/
#include "cus_name.h" // include/util/
#include <bench.h>
#include "benchLog.h"
#include <toolsdef.h>

View File

@ -11,7 +11,7 @@
#define _GNU_SOURCE
#include <tdef.h> // include/util/
#include "cus_name.h" // include/util/
#include "dump.h"
#include "dumpUtil.h"
#ifdef WEBSOCKET