annotate foosdk/sdk/foobar2000/foo_sample/main.cpp @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
1 #include "stdafx.h"
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
2
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
3 // Declaration of your component's version information
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
4 // Since foobar2000 v1.0 having at least one of these in your DLL is mandatory to let the troubleshooter tell different versions of your component apart.
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
5 // Note that it is possible to declare multiple components within one DLL, but it's strongly recommended to keep only one declaration per DLL.
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
6 // As for 1.1, the version numbers are used by the component update finder to find updates; for that to work, you must have ONLY ONE declaration per DLL. If there are multiple declarations, the component is assumed to be outdated and a version number of "0" is assumed, to overwrite the component with whatever is currently on the site assuming that it comes with proper version numbers.
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
7 DECLARE_COMPONENT_VERSION("Sample Component","1.0","about message goes here");
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
8
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
9
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
10 // This will prevent users from renaming your component around (important for proper troubleshooter behaviors) or loading multiple instances of it.
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
11 VALIDATE_COMPONENT_FILENAME("foo_sample.dll");
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
12
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
13 // Activate cfg_var downgrade functionality if enabled. Relevant only when cycling from newer FOOBAR2000_TARGET_VERSION to older.
20d02a178406 *: check in everything else
Paper <paper@tflc.us>
parents:
diff changeset
14 FOOBAR2000_IMPLEMENT_CFG_VAR_DOWNGRADE;