Motr
M0
ss_svc.h
Go to the documentation of this file.
1
/* -*- C -*- */
2
/*
3
* Copyright (c) 2014-2020 Seagate Technology LLC and/or its Affiliates
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
* For any questions about this software or licensing,
18
* please email opensource@seagate.com or cortx-questions@seagate.com.
19
*
20
*/
21
22
23
#pragma once
24
#ifndef __MOTR_SSS_SS_SVC_H__
25
#define __MOTR_SSS_SS_SVC_H__
26
27
#include "
reqh/reqh.h
"
28
#include "
reqh/reqh_service.h
"
29
#include "
fop/fom_generic.h
"
30
114
enum
{
MAX_SERVICE_NAME_LEN
= 128 };
115
116
extern
struct
m0_reqh_service_type
m0_ss_svc_type
;
117
118
enum
ss_fom_phases
{
119
SS_FOM_SWITCH
=
M0_FOPH_NR
+ 1,
120
SS_FOM_SVC_INIT
,
121
SS_FOM_START
,
122
SS_FOM_START_WAIT
,
123
SS_FOM_QUIESCE
,
124
SS_FOM_STOP
,
125
SS_FOM_STATUS
,
126
SS_FOM_HEALTH
,
127
};
128
129
M0_INTERNAL
int
m0_ss_svc_init
(
void
);
130
M0_INTERNAL
void
m0_ss_svc_fini
(
void
);
131
134
#endif
/* __MOTR_SSS_SS_SVC_H__ */
135
/*
136
* Local variables:
137
* c-indentation-style: "K&R"
138
* c-basic-offset: 8
139
* tab-width: 8
140
* fill-column: 80
141
* scroll-step: 1
142
* End:
143
*/
ss_fom_phases
ss_fom_phases
Definition:
ss_svc.h:118
m0_ss_svc_fini
M0_INTERNAL void m0_ss_svc_fini(void)
Definition:
ss_svc.c:202
SS_FOM_HEALTH
Definition:
ss_svc.h:126
m0_ss_svc_init
M0_INTERNAL int m0_ss_svc_init(void)
Definition:
ss_svc.c:170
SS_FOM_QUIESCE
Definition:
ss_svc.h:123
SS_FOM_SWITCH
Definition:
ss_svc.h:119
SS_FOM_STATUS
Definition:
ss_svc.h:125
SS_FOM_SVC_INIT
Definition:
ss_svc.h:120
m0_reqh_service_type
Definition:
reqh_service.h:446
MAX_SERVICE_NAME_LEN
Definition:
ss_svc.h:114
m0_ss_svc_type
struct m0_reqh_service_type m0_ss_svc_type
Definition:
ss_svc.c:159
fom_generic.h
SS_FOM_START_WAIT
Definition:
ss_svc.h:122
M0_FOPH_NR
Definition:
fom_generic.h:85
reqh_service.h
SS_FOM_START
Definition:
ss_svc.h:121
reqh.h
SS_FOM_STOP
Definition:
ss_svc.h:124
sss
ss_svc.h
Generated on Thu Apr 14 2022 14:03:00 for Motr by
1.8.14