Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
bd9213e7
Commit
bd9213e7
authored
Feb 11, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMQII-72: Add zmq_version function
parent
7cab423f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
zmq.h
bindings/c/zmq.h
+6
-0
config.hpp
src/config.hpp
+4
-0
zmq.cpp
src/zmq.cpp
+8
-0
No files found.
bindings/c/zmq.h
View file @
bd9213e7
...
...
@@ -39,6 +39,12 @@ extern "C" {
#define ZMQ_EXPORT
#endif
////////////////////////////////////////////////////////////////////////////////
// 0MQ versioning supprt.
////////////////////////////////////////////////////////////////////////////////
ZMQ_EXPORT
void
zmq_version
(
int
*
major
,
int
*
minor
,
int
*
patch
);
////////////////////////////////////////////////////////////////////////////////
// 0MQ errors.
////////////////////////////////////////////////////////////////////////////////
...
...
src/config.hpp
View file @
bd9213e7
...
...
@@ -27,6 +27,10 @@ namespace zmq
enum
{
// Current version of 0MQ.
version_major
=
0
,
version_minor
=
0
,
version_patch
=
0
,
// Number of new messages in message pipe needed to trigger new memory
// allocation. Setting this parameter to 256 decreases the impact of
...
...
src/zmq.cpp
View file @
bd9213e7
...
...
@@ -30,6 +30,7 @@
#include "msg_content.hpp"
#include "platform.hpp"
#include "stdint.hpp"
#include "config.hpp"
#include "err.hpp"
#include "fd.hpp"
...
...
@@ -49,6 +50,13 @@
#include <pgm/pgm.h>
#endif
void
zmq_version
(
int
*
major_
,
int
*
minor_
,
int
*
patch_
)
{
*
major_
=
zmq
::
version_major
;
*
minor_
=
zmq
::
version_minor
;
*
patch_
=
zmq
::
version_patch
;
}
const
char
*
zmq_strerror
(
int
errnum_
)
{
switch
(
errnum_
)
{
...
...
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