MXS-2197 Rename all module include files from .h to .hh
This commit is contained in:
56
server/modules/include/debugcli.hh
Normal file
56
server/modules/include/debugcli.hh
Normal file
@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2016 MariaDB Corporation Ab
|
||||
*
|
||||
* Use of this software is governed by the Business Source License included
|
||||
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
|
||||
*
|
||||
* Change Date: 2022-01-01
|
||||
*
|
||||
* On the date above, in accordance with the Business Source License, use
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file debugcli.h The debug interface to the gateway
|
||||
*/
|
||||
|
||||
#include <maxscale/ccdefs.hh>
|
||||
#include <maxscale/service.hh>
|
||||
#include <maxscale/session.hh>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
||||
struct cli_session;
|
||||
|
||||
/**
|
||||
* The CLI_INSTANCE structure. There is one instane of the CLI "router" for
|
||||
* each service that uses the CLI.
|
||||
*/
|
||||
typedef struct cli_instance
|
||||
{
|
||||
pthread_mutex_t lock; /*< The instance spinlock */
|
||||
SERVICE* service;/*< The debug cli service */
|
||||
struct cli_session
|
||||
* sessions; /*< Linked list of sessions within this instance */
|
||||
struct cli_instance
|
||||
* next; /*< The next pointer for the list of instances */
|
||||
} CLI_INSTANCE;
|
||||
|
||||
/**
|
||||
* The CLI_SESSION structure. As CLI_SESSION is created for each user that logs into
|
||||
* the DEBUG CLI.
|
||||
*/
|
||||
#define CMDBUFLEN 2048
|
||||
|
||||
typedef struct cli_session
|
||||
{
|
||||
char cmdbuf[CMDBUFLEN]; /*< The command buffer used to build up user commands */
|
||||
MXS_SESSION* session; /*< The gateway session */
|
||||
struct cli_session
|
||||
* next; /*< The next pointer for the list of sessions */
|
||||
} CLI_SESSION;
|
||||
|
||||
MXS_END_DECLS
|
Reference in New Issue
Block a user