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
e9b5b91f
Commit
e9b5b91f
authored
Dec 17, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Crossref for web added
parent
a1ad3224
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
src/lib/co/src/co_api.cpp
src/lib/co/src/co_api.cpp
+38
-0
src/lib/co/src/co_api.h
src/lib/co/src/co_api.h
+8
-0
No files found.
src/lib/co/src/co_api.cpp
View file @
e9b5b91f
...
...
@@ -30,6 +30,7 @@ extern "C" {
#include "co_msgwindow.h"
#include "co_xhelp.h"
#include "co_nav_crr.h"
extern
"C"
{
#include "co_api.h"
...
...
@@ -162,6 +163,43 @@ int xhelp_help( char *key, char *help_bookmark, navh_eHelpFile file_type,
return
CoXHelp
::
dhelp
(
key
,
help_bookmark
,
file_type
,
file_name
,
strict
!=
0
);
}
//
// c api to co_crr
//
int
crr_signal
(
void
*
parent_ctx
,
char
*
signalname
,
void
(
*
insert_cb
)(
void
*
,
void
*
,
navc_eItemType
,
char
*
,
char
*
,
int
),
int
(
*
name_to_objid_cb
)(
void
*
,
char
*
,
pwr_tObjid
*
),
int
(
*
get_volume_cb
)(
void
*
,
pwr_tVolumeId
*
))
{
int
sts
;
NavCrr
*
navcrr
=
new
NavCrr
(
parent_ctx
,
0
);
navcrr
->
insert_cb
=
insert_cb
;
navcrr
->
name_to_objid_cb
=
name_to_objid_cb
;
navcrr
->
get_volume_cb
=
get_volume_cb
;
sts
=
navcrr
->
crr_signal
(
0
,
signalname
);
delete
navcrr
;
return
sts
;
}
int
crr_object
(
void
*
parent_ctx
,
char
*
objectname
,
void
(
*
insert_cb
)(
void
*
,
void
*
,
navc_eItemType
,
char
*
,
char
*
,
int
),
int
(
*
name_to_objid_cb
)(
void
*
,
char
*
,
pwr_tObjid
*
),
int
(
*
get_volume_cb
)(
void
*
,
pwr_tVolumeId
*
))
{
int
sts
;
NavCrr
*
navcrr
=
new
NavCrr
(
parent_ctx
,
0
);
navcrr
->
insert_cb
=
insert_cb
;
navcrr
->
name_to_objid_cb
=
name_to_objid_cb
;
navcrr
->
get_volume_cb
=
get_volume_cb
;
sts
=
navcrr
->
crr_object
(
0
,
objectname
);
delete
navcrr
;
return
sts
;
}
src/lib/co/src/co_api.h
View file @
e9b5b91f
...
...
@@ -58,6 +58,14 @@ void msgw_set_nodraw();
void
msgw_reset_nodraw
();
int
xhelp_help
(
char
*
key
,
char
*
help_bookmark
,
navh_eHelpFile
file_type
,
char
*
file_name
,
int
strict
);
int
crr_signal
(
void
*
parent_ctx
,
char
*
signalname
,
void
(
*
insert_cb
)(
void
*
,
void
*
,
navc_eItemType
,
char
*
,
char
*
,
int
),
int
(
*
name_to_objid_cb
)(
void
*
,
char
*
,
pwr_tObjid
*
),
int
(
*
get_volume_cb
)(
void
*
,
pwr_tVolumeId
*
));
int
crr_object
(
void
*
parent_ctx
,
char
*
objectname
,
void
(
*
insert_cb
)(
void
*
,
void
*
,
navc_eItemType
,
char
*
,
char
*
,
int
),
int
(
*
name_to_objid_cb
)(
void
*
,
char
*
,
pwr_tObjid
*
),
int
(
*
get_volume_cb
)(
void
*
,
pwr_tVolumeId
*
));
#if defined __cplusplus
}
#endif
...
...
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