linux-capture: Refactor source data

Remove comments from and align members in the source data struct for the
xshm capture plugin.
master
fryshorts 2014-12-22 00:39:32 +01:00
parent ed839dce19
commit db9b71b80b
1 changed files with 15 additions and 22 deletions

View File

@ -32,32 +32,25 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define blog(level, msg, ...) blog(level, "xshm-input: " msg, ##__VA_ARGS__) #define blog(level, msg, ...) blog(level, "xshm-input: " msg, ##__VA_ARGS__)
struct xshm_data { struct xshm_data {
/** The source object */ obs_source_t *source;
obs_source_t *source;
xcb_connection_t *xcb; xcb_connection_t *xcb;
xcb_screen_t *xcb_screen; xcb_screen_t *xcb_screen;
xcb_shm_t *xshm;
xcb_xcursor_t *cursor;
/** user setting - the server name to capture from */ char *server;
char *server; uint_fast32_t screen_id;
/** user setting - the id of the screen that should be captured */ int_fast32_t x_org;
uint_fast32_t screen_id; int_fast32_t y_org;
/** root coordinates for the capture */ int_fast32_t width;
int_fast32_t x_org, y_org; int_fast32_t height;
/** size for the capture */
int_fast32_t width, height; gs_texture_t *texture;
/** shared memory management object */
xcb_shm_t *xshm; bool show_cursor;
/** the texture used to display the capture */ bool use_xinerama;
gs_texture_t *texture; bool advanced;
/** cursor object for displaying the server */
xcb_xcursor_t *cursor;
/** user setting - if cursor should be displayed */
bool show_cursor;
/** set if xinerama is available and active on the screen */
bool use_xinerama;
/** user setting - if advanced settings should be displayed */
bool advanced;
}; };
/** /**