Top | ![]() |
![]() |
![]() |
![]() |
A SnapdPrice represents an amount of money required to purchase a snap.
Prices can be queried using snapd_snap_get_prices()
and are used in
snapd_client_buy_sync()
.
gdouble
snapd_price_get_amount (SnapdPrice *price
);
Get the currency amount for this price, e.g. 0.99.
Return: a currency amount.
const gchar *
snapd_price_get_currency (SnapdPrice *price
);
Get the currency this price is in, e.g. "NZD".
typedef struct _SnapdPrice SnapdPrice;
SnapdPrice is an opaque data structure and can only be accessed using the provided functions.