ptp               448 core/ptp.c       PTPContainer ptp;
ptp               451 core/ptp.c       memset(&ptp,0,sizeof(PTPContainer));
ptp               452 core/ptp.c       ptp.code = PTP_RC_OK;
ptp               453 core/ptp.c       ptp.sess_id = sess_id;
ptp               454 core/ptp.c       ptp.trans_id = trans_id;
ptp               455 core/ptp.c       ptp.num_param = 0;
ptp               462 core/ptp.c           ptp.num_param = 2;
ptp               463 core/ptp.c           ptp.param1 = PTP_CHDK_VERSION_MAJOR;
ptp               464 core/ptp.c           ptp.param2 = PTP_CHDK_VERSION_MINOR;
ptp               467 core/ptp.c           ptp.num_param = 1;
ptp               468 core/ptp.c           ptp.param1 = 0;
ptp               469 core/ptp.c           ptp.param1 |= PTP_CHDK_SCRIPT_SUPPORT_LUA;
ptp               472 core/ptp.c           ptp.num_param = 1;
ptp               473 core/ptp.c           ptp.param1 = 0;
ptp               474 core/ptp.c           ptp.param1 |= script_is_running()?PTP_CHDK_SCRIPT_STATUS_RUN:0;
ptp               475 core/ptp.c           ptp.param1 |= (!script_msg_q_empty(&msg_q_out))?PTP_CHDK_SCRIPT_STATUS_MSG:0;
ptp               484 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               503 core/ptp.c                     ptp.code = PTP_RC_GeneralError;
ptp               524 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               531 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               538 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               547 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               554 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               560 core/ptp.c               ptp.num_param = 1;
ptp               561 core/ptp.c               ptp.param1 = call_func_ptr((void *)buf[0],(unsigned *)buf+1,(s-4)/4);
ptp               563 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               578 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               590 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               606 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               612 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               636 core/ptp.c                 ptp.code = PTP_RC_GeneralError;
ptp               642 core/ptp.c                     ptp.code = PTP_RC_GeneralError;
ptp               651 core/ptp.c                         ptp.code = PTP_RC_GeneralError;
ptp               659 core/ptp.c                         ptp.code = PTP_RC_GeneralError;
ptp               673 core/ptp.c             if(data_size > 0 && ptp.code != PTP_RC_OK && !recv_err) { 
ptp               689 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               700 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               714 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               729 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               745 core/ptp.c             ptp.num_param = 1;
ptp               746 core/ptp.c             ptp.param1 = total_size;
ptp               759 core/ptp.c             ptp.num_param = 2;
ptp               760 core/ptp.c             ptp.param1 = script_run_id; // in error case, ID of most recent script
ptp               767 core/ptp.c               ptp.code = PTP_RC_ParameterNotSupported;
ptp               774 core/ptp.c               ptp.code = PTP_RC_GeneralError;
ptp               786 core/ptp.c                     ptp.param2 = PTP_CHDK_S_ERR_SCRIPTRUNNING;
ptp               804 core/ptp.c             ptp.param1 = script_run_id;
ptp               808 core/ptp.c               ptp.param2 = PTP_CHDK_S_ERRTYPE_COMPILE;
ptp               810 core/ptp.c               ptp.param2 = PTP_CHDK_S_ERRTYPE_NONE;
ptp               823 core/ptp.c           ptp.num_param = 4;
ptp               825 core/ptp.c             ptp.param1 = msg->type;
ptp               826 core/ptp.c             ptp.param2 = msg->subtype;
ptp               827 core/ptp.c             ptp.param3 = msg->script_id;
ptp               828 core/ptp.c             ptp.param4 = msg->size;
ptp               836 core/ptp.c             ptp.param1 = PTP_CHDK_S_MSGTYPE_NONE;
ptp               837 core/ptp.c             ptp.param2 = 0;
ptp               838 core/ptp.c             ptp.param3 = 0;
ptp               839 core/ptp.c             ptp.param4 = 0;
ptp               845 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               854 core/ptp.c           ptp.num_param = 1;
ptp               855 core/ptp.c           ptp.param1 = PTP_CHDK_S_MSGSTATUS_OK;
ptp               857 core/ptp.c             ptp.param1 = PTP_CHDK_S_MSGSTATUS_NOTRUN;
ptp               859 core/ptp.c             ptp.param1 = PTP_CHDK_S_MSGSTATUS_BADID;
ptp               861 core/ptp.c             ptp.param1 = PTP_CHDK_S_MSGSTATUS_QFULL;
ptp               867 core/ptp.c           if(ptp.param1 != PTP_CHDK_S_MSGSTATUS_OK) {
ptp               876 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               882 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               887 core/ptp.c             ptp.code = PTP_RC_GeneralError;
ptp               897 core/ptp.c                 ptp.num_param = 1;
ptp               898 core/ptp.c                 ptp.param1 = live_view_get_data(data,param2);
ptp               899 core/ptp.c                 if(!ptp.param1)
ptp               901 core/ptp.c                     ptp.code = PTP_RC_GeneralError;
ptp               908 core/ptp.c             ptp.num_param = 2;
ptp               909 core/ptp.c             remotecap_is_ready(&ptp.param1,&ptp.param2);
ptp               919 core/ptp.c                 ptp.num_param = 3;
ptp               920 core/ptp.c                 ptp.param3 = rcgd_pos; //client needs to seek to this file position before writing the chunk (-1 = ignore)
ptp               924 core/ptp.c                     ptp.param1 = 0; //size
ptp               925 core/ptp.c                     ptp.param2 = 0; //0 = no more chunks
ptp               930 core/ptp.c                     ptp.param1 = rcgd_size; //size
ptp               932 core/ptp.c                         ptp.param2 = 1;
ptp               934 core/ptp.c                         ptp.param2 = 0;
ptp               939 core/ptp.c                     ptp.code = PTP_RC_GeneralError;
ptp               944 core/ptp.c           ptp.code = PTP_RC_ParameterNotSupported;
ptp               949 core/ptp.c       data->send_resp( data->handle, &ptp, 0 );
ptp               265 modules/luascript.c int lua_script_start( char const* script, int ptp )
ptp               268 modules/luascript.c     lua_script_is_ptp = ptp;
ptp               269 modules/luascript.c     if(ptp) {