#ifndef C_NGC_HS1_H #define C_NGC_HS1_H // this is a c header // outline: // //#include //#include //#include #include #ifdef __cplusplus extern "C" { #endif // copy from tox.h: #ifndef TOX_DEFINED #define TOX_DEFINED typedef struct Tox Tox; #endif /* TOX_DEFINED */ // ========== struct / typedef ========== typedef struct NGC_HS1 NGC_HS1; struct NGC_HS1_options { // (and up) // 0 all // 1 users // 2 mods // 3 founders // 4 no one (above founder) uint8_t default_trust_level = 2; //bool test; }; // ========== init / kill ========== // (see tox api) NGC_HS1* NGC_HS1_new(const struct NGC_HS1_options* options); void NGC_HS1_kill(NGC_HS1* ngc_hs1_ctx); // ========== iterate ========== void NGC_HS1_iterate(Tox *tox, NGC_HS1* ngc_hs1_ctx/*, void *user_data*/); // ========== send ========== // shim (same interface) // NGC_HS1_record_own_message() bool NGC_HS1_shim_group_send_message( const Tox *tox, NGC_HS1* ngc_hs1_ctx, uint32_t group_number, Tox_Message_Type type, const uint8_t *message, size_t length, uint32_t *message_id, Tox_Err_Group_Send_Message *error ); // record own msg void NGC_HS1_record_own_message( const Tox *tox, NGC_HS1* ngc_hs1_ctx, uint32_t group_number, Tox_Message_Type type, const uint8_t *message, size_t length, uint32_t message_id ); // ========== receive message ========== // shim (same interface) // ========== receive request ========== // ========== receive answer ========== #ifdef __cplusplus } #endif #endif // C_NGC_HS1_H