
#include "LibMec_EncdecDeclarations.hh"

#include "loggers.hh"

namespace LibMec__EncdecDeclarations {

  BITSTRING fx__enc__LocationRequest__UserInfo(const LibMec__SIPTypesAndValues::Request& p) {
    loggers::get_instance().log_msg(">>> fx__enc__UserInfo: ", p);

    float duration;
    std::string tag("fx__enc__Request");
    loggers::get_instance().set_start_time(tag);

    OCTETSTRING os;
//    sip_codec_request codec;
//    if (codec.encode(p, os) == -1) {
//      loggers::get_instance().warning("fx__enc__Request -1 result code was returned");
//      return int2bit(0, 1);
//    }
    loggers::get_instance().set_stop_time(tag, duration);
    
    return oct2bit(os);
  }
  
  
  INTEGER fx__dec__LocationRequest__UserInfo(BITSTRING& pdu, LibMec__SIPTypesAndValues::Request& p) {
    loggers::get_instance().log_msg(">>> fx__dec__LocationRequest__UserInfo: ", pdu);

    OCTETSTRING os = bit2oct(pdu);
//    sip_codec_request codec;
//    codec.decode(os, p);

    return 0;
  }
  
} // End of namespace LibMec__EncdecDeclarations
