bizlog.h 1.1 KB

12345678910111213141516171819202122
  1. #ifndef BIZLOG_H
  2. #define BIZLOG_H
  3. #pragma once
  4. typedef struct bizlog_t bizlog_t;
  5. bizlog_t *bizlog_create(const char *base_dir);
  6. void bizlog_destroy(bizlog_t *log);
  7. int bizlog_has_session(bizlog_t *log);
  8. int bizlog_session_begin(bizlog_t *log, const char *session,const char*filename=NULL);
  9. int bizlog_session_end(bizlog_t *log);
  10. int bizlog_function(bizlog_t *log, const char *name, const char *display_name, const char *product, const char *service_code, int action_id);
  11. int bizlog_customer_id(bizlog_t *log, const char *customer_id, const char *verify_method, int level, int action_id);
  12. int bizlog_agreement(bizlog_t *log, const char *content, int action_id);
  13. int bizlog_receipt(bizlog_t *log, const char *content, int action_id);
  14. int bizlog_operation(bizlog_t *log, const char *op_code, const char *content, int action_id);
  15. int bizlog_response(bizlog_t *log, const char *ret_code, const char *content, int action_id);
  16. int bizlog_agent(bizlog_t *log, const char *op_code, const char *content, int action_id);
  17. int bizlog_call_id(bizlog_t *log, const char *call_id, const char *skillcode, const char *agent_id, int action_id);
  18. #endif // BIZLOG_H