diff --git a/src/server/mysql.h b/src/server/mysql.h --- a/src/server/mysql.h +++ b/src/server/mysql.h @@ -57,6 +57,11 @@ void finish_frame(distrend_mysql_conn_t void start_frame(distrend_mysql_conn_t conn, int32_t slavekey, int32_t jobkey, int32_t framenum); /** + Mark a frame as started in the database and save the time at which it started. +*/ +void set_renderpower(distrend_mysql_conn_t conn, int32_t slavekey, int32_t renderpower); + +/** Changes the priority of an existing (and maybe running) job. @arg head I may end up changing the head if job == head */ int change_job_priority(distrend_mysql_conn_t conn, int32_t jobkey, int32_t newpriority); @@ -66,6 +71,10 @@ int change_job_priority(distrend_mysql_c */ int find_jobframe(distrend_mysql_conn_t conn, int32_t slaveKey, jobnum_t *jobKey, int32_t *frameNum); +/** + Auth Slave: Checks username/password of slave +*/ +int auth_slave(distrend_mysql_conn_t conn, int32_t slavekey, char *slavepass);