diff --git a/src/nng.c b/src/nng.c index cc089c28f..23acd79ba 100644 --- a/src/nng.c +++ b/src/nng.c @@ -1157,6 +1157,7 @@ nng_aio_finish(nng_aio *aio, int rv) nni_aio_finish(aio, rv, nni_aio_count(aio)); } +#if 0 int nng_snapshot_create(nng_socket sock, nng_snapshot **snapp) { @@ -1222,6 +1223,7 @@ nng_stat_value(nng_stat *stat) // Stats TBD. return (0); } +#endif int nng_url_parse(nng_url **result, const char *ustr) diff --git a/src/nng.h b/src/nng.h index a581d4343..cd79008f7 100644 --- a/src/nng.h +++ b/src/nng.h @@ -486,15 +486,15 @@ enum nng_flag_enum { // object must be deallocated expressly by the user, and may persist beyond // the lifetime of any socket object used to update it. Note that the // values of the statistics are initially unset. -NNG_DECL int nng_snapshot_create(nng_socket, nng_snapshot **); +//NNG_DECL int nng_snapshot_create(nng_socket, nng_snapshot **); // nng_snapshot_free frees a snapshot object. All statistic objects // contained therein are destroyed as well. -NNG_DECL void nng_snapshot_free(nng_snapshot *); +//NNG_DECL void nng_snapshot_free(nng_snapshot *); // nng_snapshot_update updates a snapshot of all the statistics // relevant to a particular socket. All prior values are overwritten. -NNG_DECL int nng_snapshot_update(nng_snapshot *); +//NNG_DECL int nng_snapshot_update(nng_snapshot *); // nng_snapshot_next is used to iterate over the individual statistic // objects inside the snapshot. Note that the statistic object, and the @@ -505,13 +505,13 @@ NNG_DECL int nng_snapshot_update(nng_snapshot *); // Iteration begins by providing NULL in the value referenced. Successive // calls will update this value, returning NULL when no more statistics // are available in the snapshot. -NNG_DECL int nng_snapshot_next(nng_snapshot *, nng_stat **); +//NNG_DECL int nng_snapshot_next(nng_snapshot *, nng_stat **); // nng_stat_name is used to determine the name of the statistic. // This is a human readable name. Statistic names, as well as the presence // or absence or semantic of any particular statistic are not part of any // stable API, and may be changed without notice in future updates. -NNG_DECL const char *nng_stat_name(nng_stat *); +//NNG_DECL const char *nng_stat_name(nng_stat *); // nng_stat_type is used to determine the type of the statistic. // At present, only NNG_STAT_TYPE_LEVEL and and NNG_STAT_TYPE_COUNTER @@ -519,7 +519,7 @@ NNG_DECL const char *nng_stat_name(nng_stat *); // value over time are likely more interesting than the actual level. Level // values reflect some absolute state however, and should be presented to the // user as is. -NNG_DECL int nng_stat_type(nng_stat *); +//NNG_DECL int nng_stat_type(nng_stat *); enum nng_stat_type_enum { NNG_STAT_LEVEL = 0, @@ -530,7 +530,7 @@ enum nng_stat_type_enum { // such as NNG_UNIT_BYTES or NNG_UNIT_BYTES. If no specific unit is // applicable, such as a relative priority, then NN_UNIT_NONE is // returned. -NNG_DECL int nng_stat_unit(nng_stat *); +//NNG_DECL int nng_stat_unit(nng_stat *); enum nng_unit_enum { NNG_UNIT_NONE = 0, @@ -544,7 +544,7 @@ enum nng_unit_enum { // nng_stat_value returns returns the actual value of the statistic. // Statistic values reflect their value at the time that the corresponding // snapshot was updated, and are undefined until an update is performed. -NNG_DECL int64_t nng_stat_value(nng_stat *); +//NNG_DECL int64_t nng_stat_value(nng_stat *); // Device functionality. This connects two sockets together in a device, // which means that messages from one side are forwarded to the other.