Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
29d0dcfe
Commit
29d0dcfe
authored
6 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
add resolve.h hearders file
parent
ce28ed92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/66/resolve.h
+81
-0
81 additions, 0 deletions
src/include/66/resolve.h
with
81 additions
and
0 deletions
src/include/66/resolve.h
0 → 100644
+
81
−
0
View file @
29d0dcfe
/*
* resolve.h
*
* Copyright (c) 2018 Eric Vidal <eric@obarun.org>
*
* All rights reserved.
*
* This file is part of Obarun. It is subject to the license terms in
* the LICENSE file found in the top-level directory of this
* distribution.
* This file may not be copied, modified, propagated, or distributed
* except according to the terms contained in the LICENSE file./
*/
#ifndef SSRESOLVE_H
#define SSRESOLVE_H
#include
<stddef.h>
#include
<skalibs/stralloc.h>
#include
<skalibs/types.h>
#include
<skalibs/uint32.h>
#include
<66/ssexec.h>
#include
<66/parser.h>
#define SS_RESOLVE "/.resolve"
#define SS_RESOLVE_LEN (sizeof SS_RESOLVE - 1)
#define SS_RESOLVE_LIVE 0
#define SS_RESOLVE_SRC 1
#define SS_RESOLVE_BACK 2
#define SS_NOTYPE 0
typedef
struct
ss_resolve_s
ss_resolve_t
,
*
ss_resolve_t_ref
;
struct
ss_resolve_s
{
uint32_t
salen
;
stralloc
sa
;
uint32_t
name
;
uint32_t
description
;
uint32_t
logger
;
uint32_t
logreal
;
uint32_t
dstlog
;
uint32_t
deps
;
uint32_t
src
;
uint32_t
runat
;
//livetree->longrun,scandir->svc
uint32_t
tree
;
uint32_t
treename
;
uint32_t
exec_run
;
uint32_t
exec_finish
;
uint32_t
type
;
uint32_t
ndeps
;
uint32_t
reload
;
uint32_t
disen
;
//disable->0,enable->1
uint32_t
init
;
uint32_t
unsupervise
;
uint32_t
down
;
uint32_t
run
;
uint64_t
pid
;
}
;
#define RESOLVE_ZERO { 0,STRALLOC_ZERO,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
extern
ss_resolve_t
const
ss_resolve_zero
;
extern
int
ss_resolve_pointo
(
stralloc
*
sa
,
ssexec_t
*
info
,
unsigned
int
type
,
unsigned
int
where
)
;
extern
int
ss_resolve_src
(
genalloc
*
ga
,
stralloc
*
sasrc
,
char
const
*
name
,
char
const
*
src
,
unsigned
int
*
found
)
;
extern
void
ss_resolve_init
(
ss_resolve_t
*
res
)
;
extern
int
ss_resolve_add_uint32
(
stralloc
*
sa
,
uint32_t
data
)
;
extern
int
ss_resolve_add_uint64
(
stralloc
*
sa
,
uint64_t
data
)
;
extern
uint32_t
ss_resolve_add_string
(
ss_resolve_t
*
res
,
char
const
*
data
)
;
extern
int
ss_resolve_pack
(
stralloc
*
sa
,
ss_resolve_t
*
res
)
;
extern
int
ss_resolve_write
(
ss_resolve_t
*
res
,
char
const
*
dst
,
char
const
*
name
)
;
extern
int
ss_resolve_read
(
ss_resolve_t
*
res
,
char
const
*
src
,
char
const
*
name
)
;
extern
void
ss_resolve_free
(
ss_resolve_t
*
res
)
;
extern
int
ss_resolve_check
(
ssexec_t
*
info
,
char
const
*
name
,
unsigned
int
where
)
;
extern
int
ss_resolve_setnwrite
(
ss_resolve_t
*
res
,
sv_alltype
*
services
,
ssexec_t
*
info
,
char
const
*
dst
)
;
extern
int
ss_resolve_setlognwrite
(
ss_resolve_t
*
sv
,
char
const
*
dst
)
;
extern
int
ss_resolve_rmfile
(
ss_resolve_t
*
res
,
char
const
*
src
,
char
const
*
name
)
;
extern
int
ss_resolve_addlogger
(
ssexec_t
*
info
,
genalloc
*
ga
)
;
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment