1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-26 11:54:44 +01:00

Simplification

This commit is contained in:
Daniil Gentili 2017-08-03 18:34:53 +02:00
parent fc03f8547b
commit f5820a7780
2 changed files with 3 additions and 4 deletions

View File

@ -37,7 +37,7 @@ void VoIP::__construct(Php::Parameters &params)
self["internalStorage"] = empty;
self["internalStorage"]["creator"] = params[0];
self["internalStorage"]["otherID"] = params[1];
otherID = (int) params[1];
self["internalStorage"]["callID"] = params[2];
self["madeline"] = params[3];
callState = (int) params[4];
@ -198,8 +198,7 @@ Php::Value VoIP::isCreator()
}
Php::Value VoIP::getOtherID()
{
Php::Value self(this);
return self["internalStorage"]["otherID"];
return otherID;
}
Php::Value VoIP::setMadeline(Php::Parameters &params)
{

2
main.h
View File

@ -112,7 +112,7 @@ public:
bool configuringInput;
FILE *outputFile;
tgvoip_mutex_t outputMutex;
int otherID;
bool configuringOutput;
private: