Defining API function prototypes