Skip to content

Commit

Permalink
Problem: new methods not marked as draft
Browse files Browse the repository at this point in the history
Solution: mark them
  • Loading branch information
vyskocilm committed Aug 9, 2018
1 parent 200a020 commit 6b079f7
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 40 deletions.
9 changes: 5 additions & 4 deletions api/zsys.api
Expand Up @@ -457,7 +457,7 @@
<return type = "integer" />
</method>

<method name = "zprintf" singleton = "1">
<method name = "zprintf" singleton = "1" state = "draft">
Print formatted string. Format is specified by variable names
in Python-like format style

Expand All @@ -471,15 +471,15 @@
<argument name = "args" type = "zhash" />
<return type = "string" fresh = "1" />
</method>
<method name = "zprintf_error" singleton = "1">
<method name = "zprintf_error" singleton = "1" state = "draft">
Return error string for given format/args combination.

<argument name = "format" type = "string" />
<argument name = "args" type = "zhash" />
<return type = "string" fresh = "1" />
</method>

<method name = "zplprintf" singleton = "1">
<method name = "zplprintf" singleton = "1" state = "draft">
Print formatted string. Format is specified by variable names
in Python-like format style

Expand All @@ -493,7 +493,8 @@
<argument name = "args" type = "zconfig" />
<return type = "string" fresh = "1" />
</method>
<method name = "zplprintf_error" singleton = "1">

<method name = "zplprintf_error" singleton = "1" state = "draft">
Return error string for given format/args combination.

<argument name = "format" type = "string" />
Expand Down
76 changes: 40 additions & 36 deletions include/zsys.h
Expand Up @@ -351,42 +351,6 @@ CZMQ_EXPORT void
CZMQ_EXPORT int
zsys_auto_use_fd (void);

// Print formatted string. Format is specified by variable names
// in Python-like format style
//
// "%(KEY)s=%(VALUE)s", KEY=key, VALUE=value
// become
// "key=value"
//
// Returns freshly allocated string or NULL in a case of error.
// Not enough memory, invalid format specifier, name not in args
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zprintf (const char *format, zhash_t *args);

// Return error string for given format/args combination.
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zprintf_error (const char *format, zhash_t *args);

// Print formatted string. Format is specified by variable names
// in Python-like format style
//
// "%(KEY)s=%(VALUE)s", KEY=key, VALUE=value
// become
// "key=value"
//
// Returns freshly allocated string or NULL in a case of error.
// Not enough memory, invalid format specifier, name not in args
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zplprintf (const char *format, zconfig_t *args);

// Return error string for given format/args combination.
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zplprintf_error (const char *format, zconfig_t *args);

// Set log identity, which is a string that prefixes all log messages sent
// by this process. The log identity defaults to the environment variable
// ZSYS_LOGIDENT, if that is set.
Expand Down Expand Up @@ -481,6 +445,46 @@ CZMQ_EXPORT void
CZMQ_EXPORT int64_t
zsys_file_stable_age_msec (void);

// *** Draft method, for development use, may change without warning ***
// Print formatted string. Format is specified by variable names
// in Python-like format style
//
// "%(KEY)s=%(VALUE)s", KEY=key, VALUE=value
// become
// "key=value"
//
// Returns freshly allocated string or NULL in a case of error.
// Not enough memory, invalid format specifier, name not in args
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zprintf (const char *format, zhash_t *args);

// *** Draft method, for development use, may change without warning ***
// Return error string for given format/args combination.
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zprintf_error (const char *format, zhash_t *args);

// *** Draft method, for development use, may change without warning ***
// Print formatted string. Format is specified by variable names
// in Python-like format style
//
// "%(KEY)s=%(VALUE)s", KEY=key, VALUE=value
// become
// "key=value"
//
// Returns freshly allocated string or NULL in a case of error.
// Not enough memory, invalid format specifier, name not in args
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zplprintf (const char *format, zconfig_t *args);

// *** Draft method, for development use, may change without warning ***
// Return error string for given format/args combination.
// Caller owns return value and must destroy it when done.
CZMQ_EXPORT char *
zsys_zplprintf_error (const char *format, zconfig_t *args);

#endif // CZMQ_BUILD_DRAFT_API
// @end

Expand Down
40 changes: 40 additions & 0 deletions src/czmq_classes.h
Expand Up @@ -320,6 +320,46 @@ CZMQ_PRIVATE void
CZMQ_PRIVATE int64_t
zsys_file_stable_age_msec (void);

// *** Draft method, defined for internal use only ***
// Print formatted string. Format is specified by variable names
// in Python-like format style
//
// "%(KEY)s=%(VALUE)s", KEY=key, VALUE=value
// become
// "key=value"
//
// Returns freshly allocated string or NULL in a case of error.
// Not enough memory, invalid format specifier, name not in args
// Caller owns return value and must destroy it when done.
CZMQ_PRIVATE char *
zsys_zprintf (const char *format, zhash_t *args);

// *** Draft method, defined for internal use only ***
// Return error string for given format/args combination.
// Caller owns return value and must destroy it when done.
CZMQ_PRIVATE char *
zsys_zprintf_error (const char *format, zhash_t *args);

// *** Draft method, defined for internal use only ***
// Print formatted string. Format is specified by variable names
// in Python-like format style
//
// "%(KEY)s=%(VALUE)s", KEY=key, VALUE=value
// become
// "key=value"
//
// Returns freshly allocated string or NULL in a case of error.
// Not enough memory, invalid format specifier, name not in args
// Caller owns return value and must destroy it when done.
CZMQ_PRIVATE char *
zsys_zplprintf (const char *format, zconfig_t *args);

// *** Draft method, defined for internal use only ***
// Return error string for given format/args combination.
// Caller owns return value and must destroy it when done.
CZMQ_PRIVATE char *
zsys_zplprintf_error (const char *format, zconfig_t *args);

// *** Draft constants, defined for internal use only ***
#define ZGOSSIP_MSG_HELLO 1 //
#define ZGOSSIP_MSG_PUBLISH 2 //
Expand Down

0 comments on commit 6b079f7

Please sign in to comment.