summaryrefslogtreecommitdiffstats
path: root/src/itf/IMIDITempo.c
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-01-18 11:44:36 -0800
committerGlenn Kasten <gkasten@google.com>2011-01-19 10:33:52 -0800
commitbcc5c7225e3b7a1dbf2e9e830987f69167acf06f (patch)
tree56591f6cd82a95ee1b26eb73ff1a01df84c82ce3 /src/itf/IMIDITempo.c
parent4614db004f8992f7d710cb8d47550f66bce0a9d2 (diff)
downloadandroid_frameworks_wilhelm-bcc5c7225e3b7a1dbf2e9e830987f69167acf06f.tar.gz
android_frameworks_wilhelm-bcc5c7225e3b7a1dbf2e9e830987f69167acf06f.tar.bz2
android_frameworks_wilhelm-bcc5c7225e3b7a1dbf2e9e830987f69167acf06f.zip
Rename class__ to clazz, this to thiz
The JNI naming conventions avoid conflict with C++ reserved words. Change-Id: I93ad6920bf78c0a02ac4b2650a29c9e11252f731
Diffstat (limited to 'src/itf/IMIDITempo.c')
-rw-r--r--src/itf/IMIDITempo.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/itf/IMIDITempo.c b/src/itf/IMIDITempo.c
index daa9133..831fda9 100644
--- a/src/itf/IMIDITempo.c
+++ b/src/itf/IMIDITempo.c
@@ -26,10 +26,10 @@ static SLresult IMIDITempo_SetTicksPerQuarterNote(SLMIDITempoItf self, SLuint32
if (!(1 <= tpqn && tpqn <= 32767)) {
result = SL_RESULT_PARAMETER_INVALID;
} else {
- IMIDITempo *this = (IMIDITempo *) self;
- interface_lock_poke(this);
- this->mTicksPerQuarterNote = tpqn;
- interface_unlock_poke(this);
+ IMIDITempo *thiz = (IMIDITempo *) self;
+ interface_lock_poke(thiz);
+ thiz->mTicksPerQuarterNote = tpqn;
+ interface_unlock_poke(thiz);
result = SL_RESULT_SUCCESS;
}
@@ -44,10 +44,10 @@ static SLresult IMIDITempo_GetTicksPerQuarterNote(SLMIDITempoItf self, SLuint32
if (NULL == pTpqn) {
result = SL_RESULT_PARAMETER_INVALID;
} else {
- IMIDITempo *this = (IMIDITempo *) self;
- interface_lock_peek(this);
- SLuint32 ticksPerQuarterNote = this->mTicksPerQuarterNote;
- interface_unlock_peek(this);
+ IMIDITempo *thiz = (IMIDITempo *) self;
+ interface_lock_peek(thiz);
+ SLuint32 ticksPerQuarterNote = thiz->mTicksPerQuarterNote;
+ interface_unlock_peek(thiz);
*pTpqn = ticksPerQuarterNote;
result = SL_RESULT_SUCCESS;
}
@@ -64,10 +64,10 @@ static SLresult IMIDITempo_SetMicrosecondsPerQuarterNote(SLMIDITempoItf self, SL
if (!(1 <= uspqn && uspqn <= 16777215)) {
result = SL_RESULT_PARAMETER_INVALID;
} else {
- IMIDITempo *this = (IMIDITempo *) self;
- interface_lock_poke(this);
- this->mMicrosecondsPerQuarterNote = uspqn;
- interface_unlock_poke(this);
+ IMIDITempo *thiz = (IMIDITempo *) self;
+ interface_lock_poke(thiz);
+ thiz->mMicrosecondsPerQuarterNote = uspqn;
+ interface_unlock_poke(thiz);
result = SL_RESULT_SUCCESS;
}
@@ -82,10 +82,10 @@ static SLresult IMIDITempo_GetMicrosecondsPerQuarterNote(SLMIDITempoItf self, SL
if (NULL == uspqn) {
result = SL_RESULT_PARAMETER_INVALID;
} else {
- IMIDITempo *this = (IMIDITempo *) self;
- interface_lock_peek(this);
- SLuint32 microsecondsPerQuarterNote = this->mMicrosecondsPerQuarterNote;
- interface_unlock_peek(this);
+ IMIDITempo *thiz = (IMIDITempo *) self;
+ interface_lock_peek(thiz);
+ SLuint32 microsecondsPerQuarterNote = thiz->mMicrosecondsPerQuarterNote;
+ interface_unlock_peek(thiz);
*uspqn = microsecondsPerQuarterNote;
result = SL_RESULT_SUCCESS;
}
@@ -103,8 +103,8 @@ static const struct SLMIDITempoItf_ IMIDITempo_Itf = {
void IMIDITempo_init(void *self)
{
- IMIDITempo *this = (IMIDITempo *) self;
- this->mItf = &IMIDITempo_Itf;
- this->mTicksPerQuarterNote = 32; // wrong
- this->mMicrosecondsPerQuarterNote = 100; // wrong
+ IMIDITempo *thiz = (IMIDITempo *) self;
+ thiz->mItf = &IMIDITempo_Itf;
+ thiz->mTicksPerQuarterNote = 32; // wrong
+ thiz->mMicrosecondsPerQuarterNote = 100; // wrong
}