Skip to content

Commit

Permalink
Merge pull request EOSIO#19 from EOSIO/declare-get-resource-limits
Browse files Browse the repository at this point in the history
declare get_resource_limits intrinsic in privileged.h
  • Loading branch information
arhag authored Aug 1, 2018
2 parents 6c15a91 + 18c2442 commit d1955ca
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions libraries/eosiolib/privileged.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ extern "C" {
* @{
*/

/**
* @brief Get the resource limits of an account
* Get the resource limits of an account
* @param account - name of the account whose resource limit to get
* @param ram_bytes - pointer to `int64_t` to hold retrieved ram limit in absolute bytes
* @param net_weight - pointer to `int64_t` to hold net limit
* @param cpu_weight - pointer to `int64_t` to hold cpu limit
*/
void get_resource_limits( account_name account, int64_t* ram_bytes, int64_t* net_weight, int64_t* cpu_weight );

/**
* @brief Set the resource limit of an account
* Set the resource limit of an account
* @brief Set the resource limits of an account
* Set the resource limits of an account
* @param account - name of the account whose resource limit to be set
* @param ram_bytes - ram limit in absolute bytes
* @param net_weight - fractionally proportionate net limit of available resources based on (weight / total_weight_of_all_accounts)
Expand Down

0 comments on commit d1955ca

Please sign in to comment.