equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * |
3 * |
4 * Permission is hereby granted, free of charge, to any person obtaining a |
4 * Permission is hereby granted, free of charge, to any person obtaining a |
5 * copy of this software and associated documentation files (the "Software"), |
5 * copy of this software and associated documentation files (the "Software"), |
6 * to deal in the Software without restriction, including without limitation |
6 * to deal in the Software without restriction, including without limitation |
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
175 XF86ConfModeLinePtr modes, ptr, next_mode_ptr, mode_ptr; |
175 XF86ConfModeLinePtr modes, ptr, next_mode_ptr, mode_ptr; |
176 int status = FALSE; |
176 int status = FALSE; |
177 |
177 |
178 modes_sectn_ptr = xf86findModes("SunModes", configIR->conf_modes_lst); |
178 modes_sectn_ptr = xf86findModes("SunModes", configIR->conf_modes_lst); |
179 if (modes_sectn_ptr == NULL) |
179 if (modes_sectn_ptr == NULL) |
180 return; |
180 return FALSE; |
181 |
181 |
182 modes = modes_sectn_ptr->mon_modeline_lst; |
182 modes = modes_sectn_ptr->mon_modeline_lst; |
183 ptr = modes; |
183 ptr = modes; |
184 mode_ptr = NULL; |
184 mode_ptr = NULL; |
185 |
185 |
209 * fbc_remove_monitor_sunmodes_section_ER() |
209 * fbc_remove_monitor_sunmodes_section_ER() |
210 * |
210 * |
211 * removes the external representation of the device specific SunModes section |
211 * removes the external representation of the device specific SunModes section |
212 */ |
212 */ |
213 |
213 |
214 int |
214 void |
215 fbc_remove_monitor_sunmodes_section_ER( |
215 fbc_remove_monitor_sunmodes_section_ER( |
216 XF86ConfigPtr configIR, |
216 XF86ConfigPtr configIR, |
217 XF86ConfMonitorPtr monitor_sectn_ptr /* Ptr to Monitor section IR */ |
217 XF86ConfMonitorPtr monitor_sectn_ptr /* Ptr to Monitor section IR */ |
218 ) |
218 ) |
219 { |
219 { |
243 * fbc_remove_monitor_usemodes_entry_ER() |
243 * fbc_remove_monitor_usemodes_entry_ER() |
244 * |
244 * |
245 * removes the device specific use SunModes entry from the external representation |
245 * removes the device specific use SunModes entry from the external representation |
246 */ |
246 */ |
247 |
247 |
248 int |
248 void |
249 fbc_remove_monitor_usemodes_entry_ER( |
249 fbc_remove_monitor_usemodes_entry_ER( |
250 XF86ConfigPtr configIR, |
250 XF86ConfigPtr configIR, |
251 XF86ConfMonitorPtr monitor_sectn_ptr /* Ptr to Monitor section IR */ |
251 XF86ConfMonitorPtr monitor_sectn_ptr /* Ptr to Monitor section IR */ |
252 ) |
252 ) |
253 { |
253 { |