{"size": 430, "ext": "js", "max_stars_repo_path": "lib/engine/logic/avblock.js", "max_stars_repo_name": "Kreativadelar/neuron-engine", "max_stars_repo_stars_event_min_datetime": "2017-05-11T07:00:56.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-24T07:38:54.000Z", "max_issues_repo_path": "lib/engine/logic/avblock.js", "max_issues_repo_name": "Kreativadelar/neuron-engine", "max_issues_repo_issues_event_min_datetime": "2018-06-27T20:52:11.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-29T22:12:12.000Z", "max_forks_repo_path": "lib/engine/logic/avblock.js", "max_forks_repo_name": "Kreativadelar/neuron-engine", "max_forks_repo_forks_event_min_datetime": "2017-06-19T10:08:52.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-27T11:41:10.000Z"}
{"max_stars_count": 10, "max_issues_count": 3, "max_forks_count": 7, "avg_line_length": 23.8888888889, "max_line_length": 66, "alphanum_fraction": 0.7209302326}
var event = require('../../event/event');
var events = require('./events');

/**
 * [processConnectState]
 * @param  {string} device  
 * @param  {string} state 
 */
function processConnectState(device,state){
  event.emit(events.AVBLOCKCHANGE,{device: device, state: state});
}

function resetAVState(){
  event.emit(events.RESETAVSTATE);
}

exports.processConnectState = processConnectState;
exports.resetAVState = resetAVState;