diff options
26 files changed, 58 insertions, 56 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c index accd7144..2453bca3 100644 --- a/src/auditor/taler-auditor.c +++ b/src/auditor/taler-auditor.c @@ -590,7 +590,7 @@ report_amount_arithmetic_inconsistency (const char *operation,   * @param coin_pub affected coin   * @param exchange amount calculated by exchange   * @param auditor amount calculated by auditor - * @param proftable 1 if @a exchange being larger than @a auditor is + * @param profitable 1 if @a exchange being larger than @a auditor is   *           profitable for the exchange for this operation,   *           -1 if @a exchange being smaller than @a auditor is   *           profitable for the exchange, and 0 if it is unclear diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c index fff0e95b..af23d121 100644 --- a/src/auditor/taler-wire-auditor.c +++ b/src/auditor/taler-wire-auditor.c @@ -729,7 +729,7 @@ check_pending_rc (void *cls,   *   * @param receiver_account payto://-URI of the account   * @param wtid wire transfer identifier used - * @param key[out] set to the key + * @param[out] key set to the key   */  static void  hash_rc (const char *receiver_account, @@ -1343,6 +1343,7 @@ check_exchange_wire_out (struct WireAccount *wa)   * @param ec error code in case something went wrong   * @param row_off identification of the position at which we are querying   * @param details details about the wire transfer + * @param json original response in JSON format   * @return #GNUNET_OK to continue, #GNUNET_SYSERR to abort iteration   */  static int diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c index 0d4eea58..7e20600a 100644 --- a/src/auditordb/plugin_auditordb_postgres.c +++ b/src/auditordb/plugin_auditordb_postgres.c @@ -35,7 +35,7 @@   * when fetching amounts from the database.   *   * @param field name of the database field to fetch amount from - * @param amountp[out] pointer to amount to set + * @param[out] amountp pointer to amount to set   */  #define TALER_PQ_RESULT_SPEC_AMOUNT(field,amountp) TALER_PQ_result_spec_amount ( \      field,pg->currency,amountp) @@ -45,7 +45,7 @@   * when fetching amounts from the database.  NBO variant.   *   * @param field name of the database field to fetch amount from - * @param amountp[out] pointer to amount to set + * @param[out] amountp pointer to amount to set   */  #define TALER_PQ_RESULT_SPEC_AMOUNT_NBO(field, \                                          amountp) TALER_PQ_result_spec_amount_nbo ( \ @@ -992,7 +992,7 @@ struct ExchangeInfoContext  /** - * Helper function for #postgres_auditor_list_exchanges(). + * Helper function for #postgres_list_exchanges().   * To be called with the results of a SELECT statement   * that has returned @a num_results results.   * @@ -1988,7 +1988,6 @@ postgres_update_wire_auditor_account_progress (void *cls,   * @param[out] pp where is the auditor in processing   * @param[out] in_wire_off how far are we in the incoming wire transaction history   * @param[out] out_wire_off how far are we in the outgoing wire transaction history - * @param[out] wire_off_size how many bytes do @a in_wire_off and @a out_wire_off take?   * @return transaction status code   */  static enum GNUNET_DB_QueryStatus diff --git a/src/bank-lib/bank_api_admin.c b/src/bank-lib/bank_api_admin.c index d78cbaa2..e3c9f689 100644 --- a/src/bank-lib/bank_api_admin.c +++ b/src/bank-lib/bank_api_admin.c @@ -40,7 +40,7 @@ struct TALER_BANK_AdminAddIncomingHandle    /**     * POST context.     */ -  struct TEAH_PostContext post_ctx; +  struct TALER_CURL_PostContext post_ctx;    /**     * Handle for the request. diff --git a/src/bank-lib/bank_api_transfer.c b/src/bank-lib/bank_api_transfer.c index a23e515f..584f056a 100644 --- a/src/bank-lib/bank_api_transfer.c +++ b/src/bank-lib/bank_api_transfer.c @@ -124,7 +124,7 @@ struct TALER_BANK_WireExecuteHandle    /**     * POST context.     */ -  struct TEAH_PostContext post_ctx; +  struct TALER_CURL_PostContext post_ctx;    /**     * Handle for the request. diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index 758c44cf..bb639ea4 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -283,7 +283,7 @@ TALER_FAKEBANK_check_debit (struct TALER_FAKEBANK_Handle *h,   * @param h bank instance   * @param want_amount transfer amount desired   * @param want_debit account that should have been debited - * @param want_debit account that should have been credited + * @param want_credit account that should have been credited   * @param reserve_pub reserve public key expected in wire subject   * @return #GNUNET_OK on success   */ @@ -450,7 +450,8 @@ TALER_FAKEBANK_make_admin_transfer (struct TALER_FAKEBANK_Handle *h,  /**   * Check that no wire transfers were ordered (or at least none - * that have not been taken care of via #TALER_FAKEBANK_check()). + * that have not been taken care of via #TALER_FAKEBANK_check_credit() + * or #TALER_FAKEBANK_check_debit()).   * If any transactions are onrecord, return #GNUNET_SYSERR.   *   * @param h bank instance @@ -819,8 +820,7 @@ struct HistoryArgs   * /history/incoming and /history/outgoing.   *   * @param connection MHD connection. - * @param function_name name of the caller. - * @param ha[out] will contain the parsed values. + * @param[out] ha will contain the parsed values.   * @return GNUNET_OK only if the parsing succeedes.   */  static int diff --git a/src/curl/curl.c b/src/curl/curl.c index b60fb2ce..dd119490 100644 --- a/src/curl/curl.c +++ b/src/curl/curl.c @@ -32,13 +32,13 @@  /**   * Add the @a body as POST data to the easy handle in @a ctx.   * - * @param ctx[in,out] a request context (updated) + * @param[in,out] ctx a request context (updated)   * @param eh easy handle to use   * @param body JSON body to add to @e ctx   * @return #GNUNET_OK on success #GNUNET_SYSERR on failure   */  int -TALER_curl_easy_post (struct TEAH_PostContext *ctx, +TALER_curl_easy_post (struct TALER_CURL_PostContext *ctx,                        CURL *eh,                        const json_t *body)  { @@ -104,12 +104,13 @@ TALER_curl_easy_post (struct TEAH_PostContext *ctx,  /**   * Free the data in @a ctx.   * - * @param ctx[in] a request context (updated) + * @param[in] ctx a request context (updated)   */  void -TALER_curl_easy_post_finished (struct TEAH_PostContext *ctx) +TALER_curl_easy_post_finished (struct TALER_CURL_PostContext *ctx)  {    curl_slist_free_all (ctx->headers);    ctx->headers = NULL;    GNUNET_free_non_null (ctx->json_enc); +  ctx->json_enc = NULL;  } diff --git a/src/exchange-tools/taler-wire.c b/src/exchange-tools/taler-wire.c index 5e3c18a6..fbad2e9a 100644 --- a/src/exchange-tools/taler-wire.c +++ b/src/exchange-tools/taler-wire.c @@ -99,12 +99,12 @@ static struct GNUNET_CURL_RescheduleContext *rc;   * history returned by the bank.   *   * @param cls closure + * @param http_status HTTP status code from server   * @param ec taler error code - * @param dir direction of the transfer - * @param row_off identification of the position at - *        which we are querying - * @param row_off_size number of bytes in @a row_off + * @param serial_id identification of the position at + *        which we are returning data   * @param details details about the wire transfer + * @param json original full response from server   * @return #GNUNET_OK to continue, #GNUNET_SYSERR to   *         abort iteration   */ diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c index 338e979e..e9973c51 100644 --- a/src/exchange/taler-exchange-aggregator.c +++ b/src/exchange/taler-exchange-aggregator.c @@ -337,7 +337,7 @@ advance_fees (struct WireAccount *wa,  /**   * Update wire transfer fee data structure in @a wp.   * - * @param wp wire transfer fee data structure to update + * @param wa wire account data structure to update   * @param now timestamp to update fees to   * @param session DB session to use   * @return transaction status diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index bc6f1ca6..d82ca917 100644 --- a/src/exchange/taler-exchange-httpd_db.c +++ b/src/exchange/taler-exchange-httpd_db.c @@ -82,7 +82,7 @@ TEH_DB_know_coin_transaction (void *cls,   *   * @param connection MHD connection to run @a cb for   * @param name name of the transaction (for debugging) - * @param[out] set to MHD response code, if transaction failed + * @param[out] mhd_ret set to MHD response code, if transaction failed   * @param cb callback implementing transaction logic   * @param cb_cls closure for @a cb, must be read-only!   * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index 46c08e51..edb832dc 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -955,7 +955,6 @@ sign_key_issue_to_json (const struct TALER_ExchangeSigningKeyValidityPS *ski,   * @param cls closure with the `struct ResponseFactoryContext *`   * @param filename name of the file the key came from   * @param ski the sign key issue - * @param ski_sig signature over @a ski   * @return #GNUNET_OK to continue to iterate,   *  #GNUNET_NO to stop iteration with no error,   *  #GNUNET_SYSERR to abort iteration with error! @@ -1589,7 +1588,7 @@ build_keys_response (const struct ResponseFactoryContext *rfc,   * This function checks if the @a denom_pub is already known to us,   * and if not adds it to our set.   * - * @parma cls closure, a `struct ResponseFactoryContext *` + * @param cls closure, a `struct ResponseFactoryContext *`   * @param denom_pub public key of the denomination   * @param issue detailed information about the denomination (value, expiration times, fees)   */ @@ -1899,6 +1898,7 @@ TEH_KS_release_ (const char *location,   * For every call to #TEH_KS_acquire(), a matching call   * to #TEH_KS_release() must be made.   * + * @param now for what timestamp should we acquire the key state   * @param location name of the function in which the lock is acquired   * @return the key state, NULL on error (usually pretty fatal)   */ @@ -1964,8 +1964,8 @@ TEH_KS_acquire_ (struct GNUNET_TIME_Absolute now,   * @param key_state state to look in   * @param denom_pub_hash hash of denomination public key   * @param use purpose for which the key is being located - * @param ec[out] set to the error code, in case the operation failed - * @param hc[out] set to the HTTP status code to use + * @param[out] ec set to the error code, in case the operation failed + * @param[out] hc set to the HTTP status code to use   * @return the denomination key issue,   *         or NULL if denom_pub could not be found (or is not valid at this time for the given @a use)   */ diff --git a/src/exchange/taler-exchange-httpd_keystate.h b/src/exchange/taler-exchange-httpd_keystate.h index 5d92af2b..5a7afa2d 100644 --- a/src/exchange/taler-exchange-httpd_keystate.h +++ b/src/exchange/taler-exchange-httpd_keystate.h @@ -42,6 +42,7 @@ struct TEH_KS_StateHandle;   * For every call to #TEH_KS_acquire(), a matching call   * to #TEH_KS_release() must be made.   * + * @param now for what timestamp should we acquire the key state   * @param location name of the function in which the lock is acquired   * @return the key state, NULL on error (usually pretty fatal)   */ diff --git a/src/include/taler_curl_lib.h b/src/include/taler_curl_lib.h index 6c90c671..a38c0fce 100644 --- a/src/include/taler_curl_lib.h +++ b/src/include/taler_curl_lib.h @@ -21,8 +21,8 @@   * @brief Helper routines shared by libtalerexchange and libtalerauditor   * @author Christian Grothoff   */ -#ifndef TEAH_COMMON_H -#define TEAH_COMMON_H +#ifndef TALER_CURL_LIB_H +#define TALER_CURL_LIB_H  #include <gnunet/gnunet_curl_lib.h>  #include "taler_json_lib.h" @@ -33,10 +33,10 @@  #define COMPRESS_BODIES 1  /** - * State used for #TEAL_curl_easy_post() and - * #TEAL_curl_easy_post_finished(). + * State used for #TALER_curl_easy_post() and + * #TALER_curl_easy_post_finished().   */ -struct TEAH_PostContext +struct TALER_CURL_PostContext  {    /**     * JSON encoding of the request to POST. @@ -60,7 +60,7 @@ struct TEAH_PostContext   * @return #GNUNET_OK on success #GNUNET_SYSERR on failure   */  int -TALER_curl_easy_post (struct TEAH_PostContext *ctx, +TALER_curl_easy_post (struct TALER_CURL_PostContext *ctx,                        CURL *eh,                        const json_t *body); @@ -71,7 +71,7 @@ TALER_curl_easy_post (struct TEAH_PostContext *ctx,   * @param ctx[in] a request context (updated)   */  void -TALER_curl_easy_post_finished (struct TEAH_PostContext *ctx); +TALER_curl_easy_post_finished (struct TALER_CURL_PostContext *ctx);  #endif diff --git a/src/lib/auditor_api_deposit_confirmation.c b/src/lib/auditor_api_deposit_confirmation.c index 2fafb285..b1a5bacc 100644 --- a/src/lib/auditor_api_deposit_confirmation.c +++ b/src/lib/auditor_api_deposit_confirmation.c @@ -52,7 +52,7 @@ struct TALER_AUDITOR_DepositConfirmationHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c index 280de02c..9a86bdf3 100644 --- a/src/lib/exchange_api_deposit.c +++ b/src/lib/exchange_api_deposit.c @@ -63,7 +63,7 @@ struct TALER_EXCHANGE_DepositHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. diff --git a/src/lib/exchange_api_payback.c b/src/lib/exchange_api_payback.c index d67cbf46..b28dc137 100644 --- a/src/lib/exchange_api_payback.c +++ b/src/lib/exchange_api_payback.c @@ -52,7 +52,7 @@ struct TALER_EXCHANGE_PaybackHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Denomination key of the coin. diff --git a/src/lib/exchange_api_refresh.c b/src/lib/exchange_api_refresh.c index de3285e0..adcc65e1 100644 --- a/src/lib/exchange_api_refresh.c +++ b/src/lib/exchange_api_refresh.c @@ -843,7 +843,7 @@ struct TALER_EXCHANGE_RefreshMeltHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. @@ -1301,7 +1301,7 @@ struct TALER_EXCHANGE_RefreshRevealHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c index 6f25c0ba..d45b35fd 100644 --- a/src/lib/exchange_api_refund.c +++ b/src/lib/exchange_api_refund.c @@ -52,7 +52,7 @@ struct TALER_EXCHANGE_RefundHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. diff --git a/src/lib/exchange_api_reserve.c b/src/lib/exchange_api_reserve.c index f392544f..9934aeba 100644 --- a/src/lib/exchange_api_reserve.c +++ b/src/lib/exchange_api_reserve.c @@ -737,7 +737,7 @@ struct TALER_EXCHANGE_ReserveWithdrawHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. diff --git a/src/lib/exchange_api_track_transaction.c b/src/lib/exchange_api_track_transaction.c index 1aac0efa..86860e6f 100644 --- a/src/lib/exchange_api_track_transaction.c +++ b/src/lib/exchange_api_track_transaction.c @@ -52,7 +52,7 @@ struct TALER_EXCHANGE_TrackTransactionHandle     * Context for #TEH_curl_easy_post(). Keeps the data that must     * persist for Curl to make the upload.     */ -  struct TEAH_PostContext ctx; +  struct TALER_CURL_PostContext ctx;    /**     * Handle for the request. diff --git a/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c b/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c index 41c00869..12b2344d 100644 --- a/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c +++ b/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c @@ -18,7 +18,7 @@  */  /** - * @file lib/testing_auditor_api_cmd_exec_wire-auditor.c + * @file lib/testing_api_cmd_auditor_exec_wire_auditor.c   * @brief run the taler-wire-auditor command   * @author Marcello Stanisci   * @author Christian Grothoff diff --git a/src/lib/testing_api_cmd_bank_admin_add_incoming.c b/src/lib/testing_api_cmd_bank_admin_add_incoming.c index bdcc65b8..c59ef85f 100644 --- a/src/lib/testing_api_cmd_bank_admin_add_incoming.c +++ b/src/lib/testing_api_cmd_bank_admin_add_incoming.c @@ -17,7 +17,7 @@    <http://www.gnu.org/licenses/>  */  /** - * @file lib/testing_api_cmd_admin_add_incoming.c + * @file lib/testing_api_cmd_bank_admin_add_incoming.c   * @brief implementation of a bank /admin/add-incoming command   * @author Christian Grothoff   * @author Marcello Stanisci diff --git a/src/lib/testing_api_cmd_bank_history_credit.c b/src/lib/testing_api_cmd_bank_history_credit.c index 2b6eb41e..bb86a9b4 100644 --- a/src/lib/testing_api_cmd_bank_history_credit.c +++ b/src/lib/testing_api_cmd_bank_history_credit.c @@ -17,8 +17,8 @@    <http://www.gnu.org/licenses/>  */  /** - * @file lib/testing_api_cmd_history.c - * @brief command to check the /history API from the bank. + * @file lib/testing_api_cmd_bank_history_credit.c + * @brief command to check the /history/incoming API from the bank.   * @author Marcello Stanisci   */  #include "platform.h" @@ -282,7 +282,7 @@ build_history (struct TALER_TESTING_Interpreter *is,                                         TALER_TESTING_UT_EXCHANGE_BANK_ACCOUNT_URL,                                         &exchange_credit_url)) )        continue; /* not an interesting event */ -    /* Seek "/history" starting row.  */ +    /* Seek "/history/incoming" starting row.  */      if ( (NULL != row_id_start) &&           (*row_id_start == *row_id) &&           (GNUNET_NO == ok) ) @@ -332,7 +332,7 @@ build_history (struct TALER_TESTING_Interpreter *is,  /** - * Check that the "/history" response matches the + * Check that the "/history/incoming" response matches the   * CMD whose offset in the list of CMDs is @a off.   *   * @param is the interpreter state. @@ -450,7 +450,7 @@ history_cb (void *cls,    {      hs->hh = NULL;      GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -                "Unwanted response code from /history: %u\n", +                "Unwanted response code from /history/incoming: %u\n",                  http_status);      TALER_TESTING_interpreter_fail (is);      return GNUNET_SYSERR; @@ -549,7 +549,7 @@ history_cleanup (void *cls,    (void) cmd;    if (NULL != hs->hh)    { -    TALER_LOG_WARNING ("/history did not complete\n"); +    TALER_LOG_WARNING ("/history/incoming did not complete\n");      TALER_BANK_credit_history_cancel (hs->hh);    }    GNUNET_free (hs->account_url); diff --git a/src/lib/testing_api_cmd_bank_history_debit.c b/src/lib/testing_api_cmd_bank_history_debit.c index 6ca3942b..6b06fcd9 100644 --- a/src/lib/testing_api_cmd_bank_history_debit.c +++ b/src/lib/testing_api_cmd_bank_history_debit.c @@ -18,7 +18,7 @@  */  /**   * @file lib/testing_api_cmd_bank_history_debit.c - * @brief command to check the /history API from the bank. + * @brief command to check the /history/outgoing API from the bank.   * @author Marcello Stanisci   */  #include "platform.h" @@ -288,7 +288,7 @@ build_history (struct TALER_TESTING_Interpreter *is,                                         TALER_TESTING_UT_EXCHANGE_BASE_URL,                                         &exchange_base_url)) )        continue; /* not an event we care about */ -    /* Seek "/history" starting row.  */ +    /* Seek "/history/outgoing" starting row.  */      GNUNET_log (GNUNET_ERROR_TYPE_INFO,                  "Command %s is relevant for debit history!\n",                  cmd->label); @@ -340,7 +340,7 @@ build_history (struct TALER_TESTING_Interpreter *is,  /** - * Check that the "/history" response matches the + * Check that the "/history/outgoing" response matches the   * CMD whose offset in the list of CMDs is @a off.   *   * @param is the interpreter state. @@ -451,7 +451,7 @@ history_cb (void *cls,    {      hs->hh = NULL;      GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -                "Unwanted response code from /history: %u\n", +                "Unwanted response code from /history/outgoing: %u\n",                  http_status);      TALER_TESTING_interpreter_fail (is);      return GNUNET_SYSERR; @@ -549,7 +549,7 @@ history_cleanup (void *cls,    (void) cmd;    if (NULL != hs->hh)    { -    TALER_LOG_WARNING ("/history did not complete\n"); +    TALER_LOG_WARNING ("/history/outgoing did not complete\n");      TALER_BANK_debit_history_cancel (hs->hh);    }    for (unsigned int off = 0; off<hs->total; off++) diff --git a/src/lib/testing_api_cmd_bank_transfer.c b/src/lib/testing_api_cmd_bank_transfer.c index be014812..db6b9e24 100644 --- a/src/lib/testing_api_cmd_bank_transfer.c +++ b/src/lib/testing_api_cmd_bank_transfer.c @@ -17,7 +17,7 @@    <http://www.gnu.org/licenses/>  */  /** - * @file lib/testing_api_cmd_transfer.c + * @file lib/testing_api_cmd_bank_transfer.c   * @brief implementation of a bank /transfer command   * @author Christian Grothoff   * @author Marcello Stanisci diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index 52c77b16..b39ab437 100644 --- a/src/mhd/mhd_legal.c +++ b/src/mhd/mhd_legal.c @@ -14,7 +14,7 @@    TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>  */  /** - * @file mhd_legal.h + * @file mhd_legal.c   * @brief API for returning legal documents based on client language   *        and content type preferences   * @author Christian Grothoff  | 
