diff --git a/src/server/mysql.h b/src/server/mysql.h --- a/src/server/mysql.h +++ b/src/server/mysql.h @@ -45,9 +45,14 @@ int mysqlConnect(distrend_mysql_conn_t * int mysqlDisconnect(distrend_mysql_conn_t conn); /** - Mark a frame as finished in the database. + Mark a frame as finished in the database and calculate the seconds spent on that frame. */ -void finish_frame(distrend_mysql_conn_t conn, int32_t jobkey, int32_t framenum); +void finish_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. + */ +int start_frame(distrend_mysql_conn_t conn, int32_t slavekey, int32_t jobkey, int32_t framenum); /** Changes the priority of an existing (and maybe running) job. @arg head I may end up changing the head if job == head