1c4e6ec74d
* refactoring p1 * refactoring p2 * cleanups * locked screen refresh rate fix * better locked view logic * seperate dolphin service and desktop app * Desktop: Favorite app acess (Left key), Settings app * Desktop settings version, submenu header * remove unused icon anomation + naming fix Co-authored-by: あく <alleteam@gmail.com>
25 lines
630 B
C
25 lines
630 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Countable deed that affects icounter*/
|
|
typedef enum {
|
|
// iButton
|
|
DolphinDeedIButtonRead,
|
|
DolphinDeedIButtonWrite,
|
|
DolphinDeedIButtonEmulate,
|
|
// for debug
|
|
DolphinDeedWrong,
|
|
// Special value, do not use
|
|
DolphinDeedMax
|
|
} DolphinDeed;
|
|
|
|
typedef struct {
|
|
int32_t icounter; // how many icounter get by Deed
|
|
int32_t butthurt; // how many icounter get by Deed
|
|
uint32_t limit_value; // how many deeds in limit interval
|
|
uint32_t limit_interval; // interval, in minutes
|
|
} DolphinDeedWeight;
|
|
|
|
const DolphinDeedWeight* dolphin_deed_weight(DolphinDeed deed);
|