Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
0bfe2004
Commit
0bfe2004
authored
Sep 11, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script function get_language() added
parent
e86054bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
src/lib/co/src/co_ccm.c
src/lib/co/src/co_ccm.c
+22
-0
No files found.
src/lib/co/src/co_ccm.c
View file @
0bfe2004
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "co_dcli.h"
#include "co_dcli.h"
#include "co_cnf.h"
#include "co_cnf.h"
#include "co_syi.h"
#include "co_syi.h"
#include "co_api.h"
#define r_toupper(c) (((c) >= 'a' && (c) <= 'z') ? (c) & 0xDF : (c))
#define r_toupper(c) (((c) >= 'a' && (c) <= 'z') ? (c) & 0xDF : (c))
#define r_tolower(c) (((c) >= 'A' && (c) <= 'Z') ? (c) | 0x20 : (c))
#define r_tolower(c) (((c) >= 'A' && (c) <= 'Z') ? (c) | 0x20 : (c))
...
@@ -373,6 +374,8 @@ static int ccm_func_get_pwr_config( void *filectx, ccm_s_arg *arg_list, int arg_
...
@@ -373,6 +374,8 @@ static int ccm_func_get_pwr_config( void *filectx, ccm_s_arg *arg_list, int arg_
float
*
return_float
,
int
*
return_int
,
char
*
return_string
);
float
*
return_float
,
int
*
return_int
,
char
*
return_string
);
static
int
ccm_func_get_node_name
(
void
*
filectx
,
ccm_s_arg
*
arg_list
,
int
arg_count
,
int
*
return_decl
,
static
int
ccm_func_get_node_name
(
void
*
filectx
,
ccm_s_arg
*
arg_list
,
int
arg_count
,
int
*
return_decl
,
float
*
return_float
,
int
*
return_int
,
char
*
return_string
);
float
*
return_float
,
int
*
return_int
,
char
*
return_string
);
static
int
ccm_func_get_language
(
void
*
filectx
,
ccm_s_arg
*
arg_list
,
int
arg_count
,
int
*
return_decl
,
float
*
return_float
,
int
*
return_int
,
char
*
return_string
);
#define CCM_SYSFUNC_MAX 100
#define CCM_SYSFUNC_MAX 100
...
@@ -403,6 +406,7 @@ static s_sysfunc ccm_sysfunc[CCM_SYSFUNC_MAX] = {
...
@@ -403,6 +406,7 @@ static s_sysfunc ccm_sysfunc[CCM_SYSFUNC_MAX] = {
{
"translate_filename"
,
&
ccm_func_translate_filename
},
{
"translate_filename"
,
&
ccm_func_translate_filename
},
{
"get_pwr_config"
,
&
ccm_func_get_pwr_config
},
{
"get_pwr_config"
,
&
ccm_func_get_pwr_config
},
{
"get_node_name"
,
&
ccm_func_get_node_name
},
{
"get_node_name"
,
&
ccm_func_get_node_name
},
{
"get_language"
,
&
ccm_func_get_language
},
{
""
,
0
}};
{
""
,
0
}};
/************* TEST *********************/
/************* TEST *********************/
...
@@ -4911,6 +4915,24 @@ static int ccm_func_get_pwr_config(
...
@@ -4911,6 +4915,24 @@ static int ccm_func_get_pwr_config(
return
1
;
return
1
;
}
}
static
int
ccm_func_get_language
(
void
*
filectx
,
ccm_s_arg
*
arg_list
,
int
arg_count
,
int
*
return_decl
,
float
*
return_float
,
int
*
return_int
,
char
*
return_string
)
{
if
(
arg_count
!=
0
)
return
CCM__ARGMISM
;
strncpy
(
return_string
,
lng_get_language_str
(),
K_STRING_SIZE
);
return_string
[
K_STRING_SIZE
-
1
]
=
0
;
*
return_decl
=
K_DECL_STRING
;
return
1
;
}
static
int
ccm_func_get_node_name
(
static
int
ccm_func_get_node_name
(
void
*
filectx
,
void
*
filectx
,
ccm_s_arg
*
arg_list
,
ccm_s_arg
*
arg_list
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment