Mercurial > pidgin
annotate plugins/crazychat/camdata.h @ 12435:8f98014a4e7d
[gaim-migrate @ 14742]
1. Protecting the --enable-debug warning tests with an "if gcc" check.
2. Adding a number of warning flags to --enable-debug. All cases of the added warnings have been fixed, except:
a. The pointer-arith warnings. I think someone smarter than me should decide whether we need to fix those (and how) or if that should be disabled. That said, I think all the errors left (after you consider the exception listed as "b" below) are in libzephyr.
b. Those in src/protocols/sametime/meanwhile at siege's request. Don't worry about these for now.
3. Noting a few warnings we could enable, and the cases we'd have to deal with. Thoughts on these warnings?
4. I added support for FORTIFY_SOURCE. If your compiler has support for this feature, --enable-debug will set _FORTIFY_SOURCE=2. I'm doing this in --enable-debug for the warnings you get. I wouldn't mind having it on by default for the runtime protections as well. Thoughts?
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Fri, 09 Dec 2005 05:32:59 +0000 |
| parents | fc464a0abccc |
| children |
| rev | line source |
|---|---|
| 11218 | 1 /* |
| 2 * camdata.h | |
| 3 * basecame | |
| 4 * | |
| 5 * Created by CS194 on Mon Apr 26 2004. | |
| 6 * Copyright (c) 2004 __MyCompanyName__. All rights reserved. | |
| 7 * | |
| 8 */ | |
| 9 | |
| 10 #pragma once | |
| 11 | |
| 12 #ifdef __APPLE_CC__ | |
| 13 // #include <Carbon/Carbon.h> | |
| 14 #include <QuickTime/QuickTime.h> | |
| 15 #else | |
| 16 // #include <Carbon.h> | |
| 17 #include <QuickTime.h> | |
| 18 #endif | |
| 19 | |
| 20 typedef struct | |
| 21 { | |
| 22 GWorldPtr gw; | |
| 23 GWorldPtr overlay; | |
| 24 GWorldPtr histoWorld; | |
| 25 | |
| 26 Rect bounds; | |
| 27 WindowPtr window; | |
| 28 ImageSequence drawSeq; | |
| 29 UInt32 redMin, redMax; | |
| 30 UInt32 greenMin, greenMax; | |
| 31 UInt32 blueMin, blueMax; | |
| 32 | |
| 33 long selectedIndex; | |
| 34 OSType effect; | |
| 35 TimeBase effectTimeBase; | |
| 36 QTAtomContainer effectParams; | |
| 37 ImageDescriptionHandle effectDesc, effectDesc2; | |
| 38 } mungDataRecord; | |
| 39 typedef mungDataRecord *mungDataPtr; | |
| 40 | |
| 41 OSErr DisposeMungData(void); | |
| 42 OSErr InitializeMungData(Rect bounds); | |
| 43 void SetCurrentClamp(short index); | |
| 44 | |
| 45 //void BlitOneMungData(mungDataRecord *theMungData); | |
| 46 | |
| 47 //void AdjustColorClampEndpoints(short hMouseCoord); | |
|
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
48 //void IncrementCurrentClamp(void); |
|
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
49 //void DecrementCurrentClamp(void); |
|
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
50 void SetMungDataColorDefaults(void); |
|
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
51 CGrafPtr GetMungDataWindowPort(void); |
| 11218 | 52 |
| 53 GWorldPtr GetMungDataOffscreen(void); | |
|
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
54 //OSType GetMungDataEffectType(void); |
| 11218 | 55 |
|
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
56 //long GetCurrentClamp(void); |
| 11218 | 57 //void SetCurrentClamp(short index); |
| 58 | |
| 59 void GetMungDataBoundsRect(Rect *movieRect); | |
|
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
60 //CGrafPtr GetMungDataWindowPort(void); |
| 11218 | 61 |
| 62 void SetMungDataDrawSeq(ImageSequence theDrawSeq); | |
|
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
11218
diff
changeset
|
63 //ImageSequence GetMungDataDrawSeq(void); |
