Check whether a particular ad banner has been loaded.
Synopsis:
#include <bbads/bbads.h>
bbads_error_t bbads_banner_is_loaded(bbads_banner_t *banner, int *loaded)
Arguments:
-
banner
-
The bbads_banner_t* as created in the call to bbads_banner_create().
-
loaded
-
A pointer to an int that will be set with the state information. If
loaded is a null pointer, then the state information is not provided. If
loaded is not a null pointer, then the integer it points to is set as follows:
- 0, if the banner has not yet been loaded.
- 1, if the banner has been loaded.
- -1, if there was an error. Check the function's return value for the error code.
Library:
libbbads
Description:
Use this function to check if a particular banner has been loaded.
Returns:
-
BBADS_EOK on success.
-
BBADS_EBANNER if the bbads_banner_t* provided is invalid.