History

pre-updating (in advance of release) chuck_dl.h for immediate use

Ge Wang committed 3 years ago

Commit 94217c31 parent a2bfa731 file · +14 −10Browse files

Unified · Split

chuck/include/chuck_dl.h+14−10
@@ -675,22 +675,26 @@ public: · 674 unmodified lines
675675 struct ObjectApi
676676 {
677677 ObjectApi();
678− private:
678+
679+ // 1.4.2.1 (nshaheed and ge and anonymous pr-lab member) | changed from private to public
680+ // also changed all std::string & in this section to const char *
681+ // intent: this allows for chugins to access member variables and create chuck strings
682+ public:
679683 // function pointer get_type()
680− Type (* const get_type)( CK_DL_API, Chuck_VM_Shred *, std::string &name );
684+ Type (* const get_type)( CK_DL_API, Chuck_VM_Shred *, const char * name );
681685 // function pointer create()
682686 Object (* const create)( CK_DL_API, Chuck_VM_Shred *, Type type );
683687 // function pointer create_string()
684− String (* const create_string)( CK_DL_API, Chuck_VM_Shred *, std::string &value );
688+ String (* const create_string)( CK_DL_API, Chuck_VM_Shred *, const char * value );
685689 // function pointers for get_mvar_*()
686− t_CKBOOL (* const get_mvar_int)( CK_DL_API, Object object, std::string &name, t_CKINT &value );
687− t_CKBOOL (* const get_mvar_float)( CK_DL_API, Object object, std::string &name, t_CKFLOAT &value );
688− t_CKBOOL (* const get_mvar_dur)( CK_DL_API, Object object, std::string &name, t_CKDUR &value );
689− t_CKBOOL (* const get_mvar_time)( CK_DL_API, Object object, std::string &name, t_CKTIME &value );
690− t_CKBOOL (* const get_mvar_string)( CK_DL_API, Object object, std::string &name, String &value );
691− t_CKBOOL (* const get_mvar_object)( CK_DL_API, Object object, std::string &name, Object &value );
690+ t_CKBOOL (* const get_mvar_int)( CK_DL_API, Object object, const char * name, t_CKINT & value );
691+ t_CKBOOL (* const get_mvar_float)( CK_DL_API, Object object, const char * name, t_CKFLOAT & value );
692+ t_CKBOOL (* const get_mvar_dur)( CK_DL_API, Object object, const char * name, t_CKDUR & value );
693+ t_CKBOOL (* const get_mvar_time)( CK_DL_API, Object object, const char * name, t_CKTIME & value );
694+ t_CKBOOL (* const get_mvar_string)( CK_DL_API, Object object, const char * name, String & value );
695+ t_CKBOOL (* const get_mvar_object)( CK_DL_API, Object object, const char * name, Object & value );
692696 // function pointer for set_string()
693− t_CKBOOL (* const set_string)( CK_DL_API, String string, std::string &value );
697+ t_CKBOOL (* const set_string)( CK_DL_API, String string, const char * value );
694698 } * const object;
695699
696700 Api() :

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t