#ifndef __UserInfo_h_ #define __UserInfo_h_ #include "../shared/SocketInfo.h" typedef int UserId; // sNone is gone. That's for someone who isn't logged in. The proxy takes // care of that for us. enum UserInfoStatus { sLimited, // Send sample data. Slower, hide some fields, etc. DEMO sFull // Send all data. }; struct UserInfoExport { UserId userId; UserInfoStatus status; }; // This is thread safe. UserInfoExport userInfoGetInfo(SocketInfo *socket); // This is thread safe. // This is currently stubbed out. TODO. Only Scottrade uses this. We need // to fill this in before Scottrade starts using the micro_proxy! inline bool userInfoUseEasternTime(SocketInfo *socket) { return false; } void initUserInfoManager(); #endif